{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.4.7","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"./index.js","scripts":{"test":"node tests/test.js && jshint *.js"},"dependencies":{},"devDependencies":{"jshint":"2"},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","jshintConfig":{"eqeqeq":true,"freeze":true,"latedef":"nofunc","noarg":true,"nonbsp":true,"quotmark":"double","undef":true,"unused":true,"trailing":true,"eqnull":true,"proto":true,"smarttabs":true,"node":true,"globals":{"describe":true,"it":true}},"bugs":{"url":"https://github.com/FB55/CSSwhat/issues"},"homepage":"https://github.com/FB55/CSSwhat","_id":"CSSwhat@0.4.7","_shasum":"867da0ff39f778613242c44cfea83f0aa4ebdf9b","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":"me@feedic.com"}],"dist":{"shasum":"867da0ff39f778613242c44cfea83f0aa4ebdf9b","tarball":"http://registry-npm.ywwl.com/CSSwhat/download/CSSwhat-0.4.7.tgz","integrity":"sha512-bU5cYG02crjQGDN6wm8USThp/sr/MUulMTrVA1CENSBhv3B+mlJfYDP1em/wJlMT0aYcWso0cuT9NXW74yPfog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvieXLh26nS4/OUZeQmFo/G1DRTnOt2Qv4zG3kgzjZ/wIgB7cHMMoQ2gBX8+JPFSYYNSHIeSkcfQvUPG2ir7bWo64="}],"size":16250,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.4.7.tgz"},"deprecated":"the module is now available as 'css-what'","directories":{},"readme":"#CSSwhat [![Build Status](https://secure.travis-ci.org/fb55/CSSwhat.png?branch=master)](http://travis-ci.org/fb55/CSSwhat)\n\na CSS selector parser\n\n##Example\n\n```js\nrequire('CSSwhat')('foo[bar]:baz')\n\n~> [ [ { type: 'tag', name: 'foo' },\n    { type: 'attribute',\n      name: 'bar',\n      action: 'exists',\n      value: '',\n      ignoreCase: false },\n    { type: 'pseudo',\n      name: 'baz',\n      data: null } ] ]\n```\n\n##API\n\n__`CSSwhat(selector, options)` - Parses `str`, with the passed `options`.__\n\nThe function returns a two-dimensional array. The first array represents subselects separated by commas (eg. `sub1, sub2`), the second contains the relevant tokens for that selector. Possible token types are:\n\nname | attributes | example | output\n---- | ---------- | ------- | ------\n`tag`| `name`    | `div`   | `{ type: 'tag', name: 'div' }`\n`universal`| -   | `*`     | `{ type: 'universal' }`\n`pseudo`| `name`, `data`|`:name(data)`| `{ type: 'pseudo', name: 'name', data: 'data' }`\n`pseudo`| `name`, `data`|`:name`| `{ type: 'pseudo', name: 'name', data: null }`\n`attribute`|`name`, `action`, `value`, `ignoreCase`|`[attr]`|`{ type: 'attribute', name: 'attr', action: 'exists', value: '', ignoreCase: false }`\n`attribute`|`name`, `action`, `value`, `ignoreCase`|`[attr=val]`|`{ type: 'attribute', name: 'attr', action: 'equals', value: 'val', ignoreCase: false }`\n`attribute`|`name`, `action`, `value`, `ignoreCase`|`[attr^=val]`|`{ type: 'attribute', name: 'attr', action: 'start', value: 'val', ignoreCase: false }`\n`attribute`|`name`, `action`, `value`, `ignoreCase`|`[attr$=val]`|`{ type: 'attribute', name: 'attr', action: 'end', value: 'val', ignoreCase: false }`\n\n//TODO complete list\n\n__Options:__\n\n- `xmlMode`: When enabled, tagnames will be case-sensitive (ie. the output won't be lowercased).\n\n---\n\nLicense: BSD-like\n","publish_time":1399999197023,"_cnpm_publish_time":1399999197023,"dist-tags":{"latest":"0.4.7"}}