{"bugs":{"url":"https://github.com/featurist/bo-selector/issues"},"dist":{"shasum":"9816dcb00adf374ea87941a863b2acfc026afa3e","tarball":"https://registry.npmjs.org/bo-selector/-/bo-selector-0.0.10.tgz","integrity":"sha512-Drm8W3MFLNhzHTXG93g8ll7wBlmiRr5C9W8R0sbsNQp/8h1IoPnzDH4dEQuJx8VaNq02io2ZfFnzKC1s64xRJg==","signatures":[{"sig":"MEUCIFRjw3xXdBJrswlx7bjEdXouIMLA00ZtMwOfFA0ClMsXAiEAyEi/c0QFNGuXPFH9iX3eui47/De8DyeFDxUJk6OxP3A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"bo-selector.js","name":"bo-selector","_from":".","author":{"url":"http://featurist.co.uk/","name":"Josh Chisholm","email":"joshchisholm@gmail.com"},"readme":"# bo-selector\n\nA CSS selector parser based on [jison](http://zaach.github.io/jison/)\n\n[![Build Status](https://secure.travis-ci.org/featurist/bo-selector.png?branch=master)](http://travis-ci.org/featurist/bo-selector)\n\n### Example\n\n```js\nvar parser = require('./bo-selector').parser;\nvar ast = parser.parse(\".a[b = c], c[d]:e:f(g *:h:i[j]:k), :l > m[n ~= 'o']\");\nconsole.log(require('util').inspect(ast, false, null));\n```\n\n...generates:\n\n```js\n{ type: 'selector_list',\n  selectors:\n   [ { type: 'constraint_list',\n       constraints:\n        [ { type: 'class', name: 'a' },\n          { type: 'attribute_equals', name: 'b', value: 'c' } ] },\n     { type: 'element',\n       name: 'c',\n       constraints:\n        [ { type: 'has_attribute', name: 'd' },\n          { type: 'pseudo_class', name: 'e' },\n          { type: 'pseudo_func',\n            func:\n             { type: 'function',\n               name: 'f',\n               args:\n                { type: 'selector_list',\n                  selectors:\n                   [ { type: 'combinator_selector',\n                       left: { type: 'element', name: 'g', constraints: [] },\n                       right:\n                        { type: 'element',\n                          name: '*',\n                          constraints:\n                           [ { type: 'pseudo_class', name: 'h' },\n                             { type: 'pseudo_class', name: 'i' },\n                             { type: 'has_attribute', name: 'j' },\n                             { type: 'pseudo_class', name: 'k' } ] },\n                       combinator: 'descendant' } ] } } } ] },\n     { type: 'combinator_selector',\n       left:\n        { type: 'constraint_list',\n          constraints: [ { type: 'pseudo_class', name: 'l' } ] },\n       right:\n        { type: 'element',\n          name: 'm',\n          constraints: [ { type: 'attribute_contains_word', name: 'n', value: 'o' } ] },\n       combinator: 'child' } ] }\n```\n\n### Bo?\n\n[Craig David - Bo' Selecta Ruined My Life](http://www.youtube.com/watch?v=gpOA8AMZG8M)\n\n### License\n\nBSD","license":"BSD","scripts":{"test":"make test"},"_npmUser":{"name":"joshski","email":"josh@featurist.co.uk"},"homepage":"https://github.com/featurist/bo-selector","keywords":["css","selector","parser","jison","shamone"],"repository":{"url":"https://github.com/featurist/bo-selector.git","type":"git"},"_npmVersion":"1.3.14","description":"CSS selector parser based on jison","directories":{"test":"test"},"maintainers":[{"name":"joshski","email":"josh@featurist.co.uk"}],"dependencies":{},"readmeFilename":"README.md","devDependencies":{"pogo":"~0.6.4","jison":"~0.4.13","mocha":"~1.16.2","should":"~2.1.1"},"_id":"bo-selector@0.0.10","version":"0.0.10"}