{"_id":"css-to-xpath","_rev":"14-2aead3daf90d5daaebc2616ff59532bc","name":"css-to-xpath","description":"Converts CSS selectors to xpaths","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"css-to-xpath","version":"0.0.1","description":"Converts CSS selectors to xpaths","main":"js/css_to_xpath.js","directories":{"test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/featurist/css-xpaths.git"},"dependencies":{"xpath-builder":"0.0.7","bo-selector":"0.0.10"},"devDependencies":{"pogo":"~0.6.4","mocha":"~1.16.2","should":"~2.1.1","cheerio":"~0.12.4","libxmljs":"~0.8.1"},"keywords":["xpath","html","dsl"],"author":{"name":"Josh Chisholm","email":"joshchisholm@gmail.com","url":"http://featurist.co.uk/"},"license":"MIT","bugs":{"url":"https://github.com/featurist/css-xpaths/issues"},"homepage":"https://github.com/featurist/css-xpaths","_id":"css-to-xpath@0.0.1","dist":{"shasum":"ddd201a2d3e31ea168975ef58678ac71b498ac21","tarball":"https://registry.npmjs.org/css-to-xpath/-/css-to-xpath-0.0.1.tgz","integrity":"sha512-0ifqPEt/8YP6KkQPKFacC9G0BfRYdhiiRH0tCOxa28zVZJyAUvvpk70kXHYf990I147xvzBYw0YGoA8hZq6tIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx2WPt831/pGAU2r9hHlsd6Tb27avAY9d6O/NS8VVEPAIgV28SnP4Spv48pva9CWKCtKPbwzixDpwOlgKHkJXQJCc="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"joshski","email":"josh@featurist.co.uk"},"maintainers":[{"name":"joshski","email":"josh@featurist.co.uk"}]},"0.0.2":{"name":"css-to-xpath","version":"0.0.2","description":"Converts CSS selectors to xpaths","main":"js/css_to_xpath.js","directories":{"test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/featurist/css-xpaths.git"},"dependencies":{"xpath-builder":"0.0.7","bo-selector":"0.0.10"},"devDependencies":{"pogo":"~0.6.4","mocha":"~1.16.2","should":"~2.1.1","cheerio":"~0.12.4","libxmljs":"~0.8.1"},"keywords":["xpath","html","dsl"],"author":{"name":"Josh Chisholm","email":"josh@featurist.co.uk","url":"http://featurist.co.uk/"},"license":"MIT","bugs":{"url":"https://github.com/featurist/css-xpaths/issues"},"homepage":"https://github.com/featurist/css-xpaths","_id":"css-to-xpath@0.0.2","_shasum":"b99133c67d19b7502c87b3fa6b470625baa65ed1","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"joshski","email":"josh@featurist.co.uk"},"maintainers":[{"name":"joshski","email":"josh@featurist.co.uk"}],"dist":{"shasum":"b99133c67d19b7502c87b3fa6b470625baa65ed1","tarball":"https://registry.npmjs.org/css-to-xpath/-/css-to-xpath-0.0.2.tgz","integrity":"sha512-IUAdGGIVrI7dD47bFlOskrB4lEqHdUogmvwP/4CfXv3n8iIhMRx0GiGI1Vzvlki+6hs0/EO+cCbK12ayuBAXgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1Hvxgq0KPUlzsWFyl8F+aX+x05aTiAxcnR0eaqVUlXwIgdnRi9V60Cdcu/xguVd01SSq9PCaqnGZgGi8WwERLJy0="}]}},"0.0.3":{"name":"css-to-xpath","version":"0.0.3","description":"Converts CSS selectors to xpaths","main":"js/css_to_xpath.js","directories":{"test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/featurist/css-to-xpath.git"},"dependencies":{"xpath-builder":"0.0.7","bo-selector":"0.0.10"},"devDependencies":{"pogo":"~0.6.4","mocha":"~1.16.2","should":"~2.1.1","cheerio":"~0.12.4","libxmljs":"~0.8.1"},"keywords":["xpath","html","dsl"],"author":{"name":"Josh Chisholm","email":"josh@featurist.co.uk","url":"http://featurist.co.uk/"},"license":"MIT","bugs":{"url":"https://github.com/featurist/css-to-xpath/issues"},"homepage":"https://github.com/featurist/css-to-xpath","_id":"css-to-xpath@0.0.3","_shasum":"0056c5b4fc7722085c87fd2f5aabc6815288ecc6","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"joshski","email":"josh@featurist.co.uk"},"maintainers":[{"name":"joshski","email":"josh@featurist.co.uk"}],"dist":{"shasum":"0056c5b4fc7722085c87fd2f5aabc6815288ecc6","tarball":"https://registry.npmjs.org/css-to-xpath/-/css-to-xpath-0.0.3.tgz","integrity":"sha512-Z86YUGl3AxRs4iVZfBYkI0KmRPVZws8gjNP9qEin0H7bY/xHrMvwBDUrfD3vDzPCsKG0qWMS0B7EKJ75KacuCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6DLRxRLKD+rBQm2ghNV2ASITbwf5pLrexPZeUQlmd1QIgPe0k2NK3ijOVSdjrhuQjW09MQfAc9NYabDgU8Lj38DI="}]}},"0.1.0":{"name":"css-to-xpath","version":"0.1.0","description":"Converts CSS selectors to xpaths","main":"js/css_to_xpath.js","directories":{"test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/featurist/css-to-xpath.git"},"dependencies":{"xpath-builder":"0.0.7","bo-selector":"0.0.10"},"devDependencies":{"cheerio":"^0.19.0","libxmljs":"^0.15.0","mocha":"^2.3.3","pogo":"^0.10.0","should":"^7.1.1"},"keywords":["xpath","html","dsl"],"author":{"name":"Josh Chisholm","email":"josh@featurist.co.uk","url":"http://featurist.co.uk/"},"license":"MIT","gitHead":"5949f9b3d0365a7c8a81746756e96ba475a51be8","bugs":{"url":"https://github.com/featurist/css-to-xpath/issues"},"homepage":"https://github.com/featurist/css-to-xpath#readme","_id":"css-to-xpath@0.1.0","_shasum":"ac0d1c26cef023f7bd8cf2e1fc1f77134bc70c47","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"joshski","email":"josh@featurist.co.uk"},"maintainers":[{"name":"joshski","email":"josh@featurist.co.uk"}],"dist":{"shasum":"ac0d1c26cef023f7bd8cf2e1fc1f77134bc70c47","tarball":"https://registry.npmjs.org/css-to-xpath/-/css-to-xpath-0.1.0.tgz","integrity":"sha512-izIAc99mgThUsc6DkUIC0nfy3whEX4qhZ4TrRhundaRUGg4TDjqE5aMJ8YWAohH1UZcqrkYNuNvD8O0JFaCr0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsUFtqdGr7ATAs8q38wInd1B50zNhBcACkzp7htdbDoAiEA1VfJGaAMRWlJqFoISzRqR+Z5KSO3CQ9Gvy/3gQReW2o="}]}}},"readme":"# css-to-xpath\n\nConverts [CSS3 selectors](http://www.w3.org/TR/css3-selectors/#selectors) to their XPath equivalents.\n\n[![Build Status](https://secure.travis-ci.org/featurist/css-to-xpath.png?branch=master)](http://travis-ci.org/featurist/css-to-xpath)\n\n### Usage\n\n```js\nvar cssToXPath = require('css-to-xpath');\n\ncssToXPath('p:not(:has(a.x))');\n```\n...returns the string:\n```\n.//p[not(.//a[contains(concat(' ', normalize-space(./@class), ' '), ' x ')])]\n```\n\nOr if you want to continue building the XPath with xpath-builder:\n```js\nvar cssToXPath = require('css-to-xpath');\n\nvar xpathBuilderObject = cssToXPath.parse('p:not(:has(a.x))');\nxpathBuilderObject = xpathBuilderObject.where(cssToXPath.xPathBuilder.text().equals('Some Text Content'));\n\n// And get the XPath string\nxpathBuilderObject.toXPath();\n```\n\n### How?\n\ncss-to-xpath parses css selectors using [bo-selector](https://github.com/featurist/bo-selector) and turns them into xpaths using [xpath-builder](https://github.com/featurist/xpath-builder)\n\n### Install\n\nnpm install css-to-xpath\n\n### License\n\nBSD","maintainers":[{"name":"joshski","email":"josh@featurist.co.uk"}],"time":{"modified":"2022-06-14T04:54:09.996Z","created":"2014-01-02T16:00:37.394Z","0.0.1":"2014-01-02T16:00:38.596Z","0.0.2":"2014-11-25T15:17:18.134Z","0.0.3":"2014-11-25T15:25:07.077Z","0.1.0":"2015-10-22T17:05:44.789Z"},"author":{"name":"Josh Chisholm","email":"josh@featurist.co.uk","url":"http://featurist.co.uk/"},"repository":{"type":"git","url":"git+https://github.com/featurist/css-to-xpath.git"},"homepage":"https://github.com/featurist/css-to-xpath#readme","keywords":["xpath","html","dsl"],"bugs":{"url":"https://github.com/featurist/css-to-xpath/issues"},"license":"MIT","readmeFilename":"README.md","users":{"michaelchance":true,"demoive":true,"tomhodgins":true}}