{"maintainers":[{"name":"feedic","email":"me@feedic.com"}],"dist-tags":{"latest":"2.1.0"},"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"description":"a CSS selector parser","readme":"# css-what [![Build Status](https://secure.travis-ci.org/fb55/css-what.svg?branch=master)](http://travis-ci.org/fb55/css-what)\n\na CSS selector parser\n\n## Example\n\n```js\nrequire('css-what')('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 selectors 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, tag names will be case-sensitive (meaning they won't be lowercased).\n\n---\n\nLicense: BSD-like\n","repository":{"url":"git+https://github.com/fb55/css-what.git"},"users":{"mojaray2k":true},"bugs":{"url":"https://github.com/fb55/css-what/issues"},"license":"BSD-like","versions":{"1.0.0":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"css-what","description":"a CSS selector parser","version":"1.0.0","repository":{"url":"https://github.com/fb55/css-what"},"main":"./index.js","files":["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}},"gitHead":"d54c2857acbb22d56190fc998b48744597ddd730","bugs":{"url":"https://github.com/fb55/css-what/issues"},"homepage":"https://github.com/fb55/css-what","_id":"css-what@1.0.0","_shasum":"d7cc2df45180666f99d2b14462639469e00f736c","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.0.4","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":"me@feedic.com"}],"dist":{"shasum":"d7cc2df45180666f99d2b14462639469e00f736c","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/css-what/-/css-what-1.0.0.tgz"},"directories":{}},"2.0.0":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"css-what","description":"a CSS selector parser","version":"2.0.0","repository":{"url":"https://github.com/fb55/css-what"},"main":"./index.js","files":["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}},"gitHead":"f46f4aac8ce43a6be6279d8894e7bc1e4195a1db","bugs":{"url":"https://github.com/fb55/css-what/issues"},"homepage":"https://github.com/fb55/css-what","_id":"css-what@2.0.0","_shasum":"107fecc449dd4e4a5df950262364def6014e5f30","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.3.0","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":"me@feedic.com"}],"dist":{"shasum":"107fecc449dd4e4a5df950262364def6014e5f30","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/css-what/-/css-what-2.0.0.tgz"},"directories":{}},"2.0.1":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"css-what","description":"a CSS selector parser","version":"2.0.1","repository":{"url":"https://github.com/fb55/css-what"},"main":"./index.js","files":["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}},"gitHead":"e411927d535b5904bf05cf32ba68825d8071a061","bugs":{"url":"https://github.com/fb55/css-what/issues"},"homepage":"https://github.com/fb55/css-what","_id":"css-what@2.0.1","_shasum":"84546261ea504e3cdf0bf1fbc3436c9180fce4d2","_from":".","_npmVersion":"2.6.1","_nodeVersion":"1.4.2","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":"me@feedic.com"}],"dist":{"shasum":"84546261ea504e3cdf0bf1fbc3436c9180fce4d2","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/css-what/-/css-what-2.0.1.tgz"},"directories":{}},"2.0.2":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"css-what","description":"a CSS selector parser","version":"2.0.2","repository":{"url":"https://github.com/fb55/css-what"},"main":"./index.js","files":["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}},"gitHead":"1ddb673f1c7425dfe286a2dcfd1609d06e633105","bugs":{"url":"https://github.com/fb55/css-what/issues"},"homepage":"https://github.com/fb55/css-what","_id":"css-what@2.0.2","_shasum":"555f87ac386768db09cb43962571fe851409bce8","_from":".","_npmVersion":"2.6.1","_nodeVersion":"1.5.1","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":"me@feedic.com"}],"dist":{"shasum":"555f87ac386768db09cb43962571fe851409bce8","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/css-what/-/css-what-2.0.2.tgz"},"directories":{}},"2.1.0":{"author":{"name":"Felix Böhm","email":"me@feedic.com","url":"http://feedic.com"},"name":"css-what","description":"a CSS selector parser","version":"2.1.0","repository":{"url":"git+https://github.com/fb55/css-what.git"},"main":"./index.js","files":["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}},"gitHead":"fd6b9f62146efec8e17ee80ddaebdfb6ede21d7b","bugs":{"url":"https://github.com/fb55/css-what/issues"},"homepage":"https://github.com/fb55/css-what#readme","_id":"css-what@2.1.0","_shasum":"9467d032c38cfaefb9f2d79501253062f87fa1bd","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":"me@feedic.com"}],"dist":{"shasum":"9467d032c38cfaefb9f2d79501253062f87fa1bd","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/css-what/-/css-what-2.1.0.tgz"},"directories":{}}},"name":"css-what","time":{"modified":"2016-11-01T17:11:13.650Z","created":"2015-02-03T22:10:20.029Z","1.0.0":"2015-02-03T22:10:20.029Z","2.0.0":"2015-03-01T13:46:19.791Z","2.0.1":"2015-03-05T17:47:57.399Z","2.0.2":"2015-03-12T12:34:37.829Z","2.1.0":"2015-11-22T13:25:14.930Z"},"readmeFilename":"readme.md","homepage":"https://github.com/fb55/css-what#readme"}