{"_id":"wgxpath","_rev":"469316","name":"wgxpath","description":"Wicked Good XPath","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"time":{"modified":"2021-08-05T08:12:40.000Z","created":"2013-01-14T03:36:36.530Z","1.2.0":"2016-02-17T18:15:27.279Z","1.1.0":"2015-08-21T07:20:54.316Z","1.0.0":"2015-04-13T06:17:08.801Z","0.23.0":"2014-08-17T20:17:27.348Z","0.20.2":"2014-03-16T22:25:09.080Z","0.20.1":"2014-03-15T06:08:55.112Z","0.20.0":"2014-03-15T06:01:24.165Z","0.12.1":"2013-01-14T03:44:27.289Z","0.12.0":"2013-01-14T03:36:36.530Z"},"users":{"jden":true,"ageorgios":true,"nice_body":true,"jsdnxx":true},"author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"versions":{"1.2.0":{"name":"wgxpath","description":"Wicked Good XPath","version":"1.2.0","url":"https://github.com/google/wicked-good-xpath","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"gitHead":"dd873d321cdd2d4d11b646e06fe72e12cc809912","_id":"wgxpath@1.2.0","scripts":{},"_shasum":"a33e4e0f86e68e074d95d50a6e533d64938f432a","_from":".","_npmVersion":"2.14.18","_nodeVersion":"4.3.0","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"dist":{"shasum":"a33e4e0f86e68e074d95d50a6e533d64938f432a","size":11839,"noattachment":false,"key":"/wgxpath/-/wgxpath-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-1.2.0.tgz"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/wgxpath-1.2.0.tgz_1455732922988_0.5434009328018874"},"directories":{},"publish_time":1455732927279,"_cnpm_publish_time":1455732927279,"_hasShrinkwrap":false},"1.1.0":{"name":"wgxpath","description":"Wicked Good XPath","version":"1.1.0","url":"https://github.com/google/wicked-good-xpath","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"gitHead":"5b38b08ba774f9f87afa1b671d73c3ba3599fc9a","_id":"wgxpath@1.1.0","scripts":{},"_shasum":"8f557e06b5edcf69d042a2fd15870a818837a97b","_from":".","_npmVersion":"2.13.5","_nodeVersion":"0.12.7","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"dist":{"shasum":"8f557e06b5edcf69d042a2fd15870a818837a97b","size":11752,"noattachment":false,"key":"/wgxpath/-/wgxpath-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-1.1.0.tgz"},"directories":{},"publish_time":1440141654316,"_cnpm_publish_time":1440141654316,"_hasShrinkwrap":false},"1.0.0":{"name":"wgxpath","description":"Wicked Good XPath","version":"1.0.0","url":"https://github.com/google/wicked-good-xpath","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"gitHead":"bcd71e4be7fe8045a9929c224ea143792954f1f7","_id":"wgxpath@1.0.0","scripts":{},"_shasum":"eef8a4b9d558cc495ad3a9a2b751597ecd9af690","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"dist":{"shasum":"eef8a4b9d558cc495ad3a9a2b751597ecd9af690","size":12375,"noattachment":false,"key":"/wgxpath/-/wgxpath-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-1.0.0.tgz"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"directories":{},"publish_time":1428905828801,"_cnpm_publish_time":1428905828801,"_hasShrinkwrap":false},"0.23.0":{"name":"wgxpath","description":"Wicked Good XPath","version":"0.23.0","url":"http://code.google.com/p/wicked-good-xpath/","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"gitHead":"90e26234493281f47886fd4cd2735aadb69f850c","_id":"wgxpath@0.23.0","scripts":{},"_shasum":"db3fc8389d8184e96eba7037489735c136227a9f","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"dist":{"shasum":"db3fc8389d8184e96eba7037489735c136227a9f","size":11320,"noattachment":false,"key":"/wgxpath/-/wgxpath-0.23.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-0.23.0.tgz"},"directories":{},"publish_time":1408306647348,"_cnpm_publish_time":1408306647348,"_hasShrinkwrap":false},"0.20.2":{"name":"wgxpath","description":"Wicked Good XPath","version":"0.20.2","url":"http://code.google.com/p/wicked-good-xpath/","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"_id":"wgxpath@0.20.2","dist":{"shasum":"ad363f2b7d09542130ec12ee3cdae735966acaae","size":11352,"noattachment":false,"key":"/wgxpath/-/wgxpath-0.20.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-0.20.2.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"directories":{},"publish_time":1395008709080,"_cnpm_publish_time":1395008709080,"_hasShrinkwrap":false},"0.20.1":{"name":"wgxpath","description":"Wicked Good XPath","version":"0.20.1","url":"http://code.google.com/p/wicked-good-xpath/","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"_id":"wgxpath@0.20.1","dist":{"shasum":"addf16af9ca98367a38f5833d90ea168de60d63b","size":11300,"noattachment":false,"key":"/wgxpath/-/wgxpath-0.20.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-0.20.1.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"directories":{},"publish_time":1394863735112,"_cnpm_publish_time":1394863735112,"_hasShrinkwrap":false},"0.20.0":{"name":"wgxpath","description":"Wicked Good XPath","version":"0.20.0","url":"http://code.google.com/p/wicked-good-xpath/","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"_id":"wgxpath@0.20.0","dist":{"shasum":"cf25a817b8b7fb253f1c2a64ad393744ad6f6755","size":11182,"noattachment":false,"key":"/wgxpath/-/wgxpath-0.20.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-0.20.0.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"directories":{},"publish_time":1394863284165,"_cnpm_publish_time":1394863284165,"_hasShrinkwrap":false},"0.12.1":{"name":"wgxpath","description":"Wicked Good XPath","version":"0.12.1","url":"http://code.google.com/p/wicked-good-xpath/","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"readmeFilename":"README.md","_id":"wgxpath@0.12.1","dist":{"shasum":"19df471f082886b181f65013c17c0bcac4e4b452","size":10732,"noattachment":false,"key":"/wgxpath/-/wgxpath-0.12.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-0.12.1.tgz"},"_npmVersion":"1.1.66","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"directories":{},"publish_time":1358135067289,"_cnpm_publish_time":1358135067289,"_hasShrinkwrap":false},"0.12.0":{"name":"wgxpath","description":"Wicked Good XPath","version":"0.12.0","url":"http://code.google.com/p/wicked-good-xpath/","homepage":"https://github.com/jacobmarble/node-wgxpath","author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jacobmarble/node-wgxpath/blob/master/LICENSE"}],"main":"wgxpath.install.js","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"readmeFilename":"README.md","_id":"wgxpath@0.12.0","dist":{"shasum":"0806beda6eb23185488e10d2a8c3c0aff6f171ed","size":10719,"noattachment":false,"key":"/wgxpath/-/wgxpath-0.12.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wgxpath/download/wgxpath-0.12.0.tgz"},"_npmVersion":"1.1.66","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"directories":{},"publish_time":1358134596530,"_cnpm_publish_time":1358134596530,"_hasShrinkwrap":false}},"readme":"node-wgxpath\n============\n\n[Wicked Good XPath](https://github.com/google/wicked-good-xpath) is a fast implementation of [document.createExpression](https://developer.mozilla.org/en-US/docs/DOM/document.createExpression) and [document.evaluate](https://developer.mozilla.org/en-US/docs/DOM/document.evaluate) ([DOM3-XPath](http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/DOM3-XPath.html)) in pure Javascript.\n\nVersion\n------\n\n`x.y.z`: `x.y` refers to the Wicked Good XPath revision when `wgxpath.install.js` was built; `z` refers to any improvements to this package.\n\nI'm pretty lazy, so I don't build Wicked Good XPath myself. When the pre-compiled [wgxpath.install.js](https://github.com/google/wicked-good-xpath/releases/latest) is updated, I'll update this package.\n\nInstallation\n------------\n\nInstall with [npm](http://npmjs.org/):\n\n    npm install wgxpath\n\nMake sure things are working:\n\n    node node_modules/wgxpath/word_of_the_day.js\n\nExample\n-------\n\nThis example scrapes the [Merriam-Webster Word of the Day](http://www.merriam-webster.com/word-of-the-day/). This code can also be found in `word_of_the_day.js`. Be sure to install jsdom 3.x before running the example.\n\n```sh\n$ npm install jsdom@\"<4\"\n```\n\n```javascript\nvar wgxpath = require('wgxpath');\nvar jsdom = require('jsdom');\n\nvar url = 'http://www.merriam-webster.com/word-of-the-day/';\nvar expressionString = '//*[@id=\"content\"]/div[3]/ul/li[1]/strong';\n\njsdom.env({\n  html: url,\n  done: function(errors, window) {\n    wgxpath.install(window);\n    var expression = window.document.createExpression(expressionString);\n    var result = expression.evaluate(window.document,\n        wgxpath.XPathResultType.STRING_TYPE);\n    console.log('The Word of the Day is \"' + result.stringValue + '.\"');\n  }\n});\n```\n\n","_attachments":{},"homepage":"https://github.com/jacobmarble/node-wgxpath","bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"}}