{"_id":"CSSwhat","_rev":"85108","name":"CSSwhat","description":"a CSS selector parser","dist-tags":{"latest":"0.4.7"},"maintainers":[{"name":"feedic","email":""}],"time":{"modified":"2021-06-03T10:27:32.000Z","created":"2012-05-27T08:24:30.617Z","0.4.7":"2014-05-13T16:39:57.023Z","0.4.6":"2014-05-13T16:26:52.215Z","0.4.5":"2014-03-02T16:19:06.961Z","0.4.3":"2014-03-02T13:57:39.888Z","0.4.2":"2014-02-14T08:57:34.018Z","0.4.1":"2013-09-23T13:51:03.189Z","0.4.0":"2013-09-04T12:54:47.351Z","0.3.0":"2013-09-02T16:30:37.095Z","0.2.0":"2013-05-18T08:01:08.333Z","0.1.1":"2012-11-27T19:43:54.976Z","0.1.0":"2012-06-05T18:02:06.590Z","0.0.0":"2012-05-27T08:24:30.617Z"},"users":{"rubiadias":true},"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"repository":{"url":"https://github.com/FB55/CSSwhat"},"versions":{"0.4.7":{"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":""}],"dist":{"shasum":"867da0ff39f778613242c44cfea83f0aa4ebdf9b","size":16250,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.4.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.4.7.tgz"},"directories":{},"publish_time":1399999197023,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1399999197023},"0.4.6":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.4.6","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.6","_shasum":"03d1a09d0554e47b57e3d8f23e729732bd8d61ec","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"dist":{"shasum":"03d1a09d0554e47b57e3d8f23e729732bd8d61ec","size":16215,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.4.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.4.6.tgz"},"directories":{},"publish_time":1399998412215,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1399998412215},"0.4.5":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.4.5","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"./index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","bugs":{"url":"https://github.com/FB55/CSSwhat/issues"},"homepage":"https://github.com/FB55/CSSwhat","_id":"CSSwhat@0.4.5","dist":{"shasum":"85d7b2799ff3d98055353c802949e39913e16a62","size":15539,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.4.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.4.5.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1393777146961,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1393777146961},"0.4.3":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.4.3","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"./index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","bugs":{"url":"https://github.com/FB55/CSSwhat/issues"},"homepage":"https://github.com/FB55/CSSwhat","_id":"CSSwhat@0.4.3","dist":{"shasum":"f2ae03c1a7e9cc468c7105acca627bf9b7331784","size":3654,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.4.3.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1393768659888,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1393768659888},"0.4.2":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.4.2","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"./index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","bugs":{"url":"https://github.com/FB55/CSSwhat/issues"},"homepage":"https://github.com/FB55/CSSwhat","_id":"CSSwhat@0.4.2","dist":{"shasum":"7291585b71c5707ee7f49bbf3e9ae413ea715ff5","size":3618,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.4.2.tgz"},"_from":".","_npmVersion":"1.4.2","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1392368254018,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1392368254018},"0.4.1":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.4.1","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"/index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","bugs":{"url":"https://github.com/FB55/CSSwhat/issues"},"_id":"CSSwhat@0.4.1","dist":{"shasum":"fe6580461b2a3ad550d2a7785a051234974dfca7","size":3655,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.4.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1379944263189,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1379944263189},"0.4.0":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.4.0","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"/index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","bugs":{"url":"https://github.com/FB55/CSSwhat/issues"},"_id":"CSSwhat@0.4.0","dist":{"shasum":"563bf7a0ba373e28271ff147e5e893b67e4c4bac","size":3555,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.4.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1378299287351,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1378299287351},"0.3.0":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.3.0","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"/index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","bugs":{"url":"https://github.com/FB55/CSSwhat/issues"},"_id":"CSSwhat@0.3.0","dist":{"shasum":"44e93c6a50dab70f59575a539cb09f4016e188ae","size":3491,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1378139437095,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1378139437095},"0.2.0":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.2.0","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"/index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","_id":"CSSwhat@0.2.0","dist":{"shasum":"c952fdc67f01c991805fd2c7f6defaedf90e992d","size":3108,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1368864068333,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1368864068333},"0.1.1":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.1.1","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"/index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"license":"BSD-like","_id":"CSSwhat@0.1.1","dist":{"shasum":"489865be1fe831c4a9f5be82cb0ea2843605d718","size":3229,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.1.1.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1354045434976,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1354045434976},"0.1.0":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.1.0","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"/index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"feedic","email":"me@feedic.com"},"_id":"CSSwhat@0.1.0","_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"1b6f85333181a425db09aa15e0564839ac2a0547","size":2378,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.1.0.tgz"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1338919326590,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1338919326590},"0.0.0":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"CSSwhat","description":"a CSS selector parser","version":"0.0.0","repository":{"url":"https://github.com/FB55/CSSwhat"},"main":"/index.js","scripts":{"test":"node tests/test.js"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"feedic","email":"me@feedic.com"},"_id":"CSSwhat@0.0.0","_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"04a340bff07f418af3a6b0fd2dd9398b68c238f3","size":1743,"noattachment":false,"key":"/CSSwhat/-/CSSwhat-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/CSSwhat/download/CSSwhat-0.0.0.tgz"},"maintainers":[{"name":"feedic","email":""}],"directories":{},"publish_time":1338107070617,"deprecated":"the module is now available as 'css-what'","_hasShrinkwrap":false,"_cnpm_publish_time":1338107070617}},"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","_attachments":{},"homepage":"https://github.com/FB55/CSSwhat","bugs":{"url":"https://github.com/FB55/CSSwhat/issues"},"license":"BSD-like"}