{"_id":"wgxpath","_rev":"28-d0cd2081882674e97128da91640c02c7","name":"wgxpath","description":"Wicked Good XPath","dist-tags":{"latest":"1.2.0"},"versions":{"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"],"_id":"wgxpath@0.12.0","dist":{"shasum":"0806beda6eb23185488e10d2a8c3c0aff6f171ed","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-0.12.0.tgz","integrity":"sha512-Niro0Te5YSNdNGPgaIRfaPsDOaooftHMeDx4kd2A+CnrqR6t5cIUQYyHuVnb+FmUHKpBzt/aLkJxGUstV7ShJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIftFAtRAQ6oF8Iwt1N994kxegwWDXXn9K69+jCgTuoAIgAkJpUzKb3YHGA0cBq8P70IgHqsaU6ejAwcX3A0CQrDY="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}]},"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"],"_id":"wgxpath@0.12.1","dist":{"shasum":"19df471f082886b181f65013c17c0bcac4e4b452","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-0.12.1.tgz","integrity":"sha512-LFKy216JjpRFwz4nZuDF4RGwe13UaUllnbNKgS2ROULFVPvslJiMSZMZogOK/0YTPMt/CgcQlwR2QfFitrgh9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcfU0BQkxkB2+t5kxAAwRUHDisHzLerZNq15Qy+qCA3gIgeDvOvWea/Ypg7FQA2kfkq6HQ6CvYjPX9QL3wPVnGL8c="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-0.20.0.tgz","integrity":"sha512-Oj17X53XOOgBl5v8QDuwWtk5Sojm5FjE19ftS7PFjrERikUbjxXedV3fRjt8slLKPXbEwVavpK9ttPqtNuclCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8pm3u14DlSnBiO+ea6tfnN78rzH2tVCpXFFeD5qBwTgIgUXYwsNchxHy98f8JgMugtMcv1+dw0HIaWmdFvV9A2qY="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-0.20.1.tgz","integrity":"sha512-71c7mcWtd9EgCCIl3DADHxr0+6FvOHaQHUGjYBHvnImu4xYx5ZJt7+gS6WMj4jB48FPxJSYjdwVBtz3JDamBLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwbac5F4Og8YPc+sHthCo9IPm1emoSmRZUF2Q8U8y0YwIgXIg9beZxvjGqwgs5lN6KZTzUNEDjJkuiA3DT6QvWYFo="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-0.20.2.tgz","integrity":"sha512-xTrxmqz/VB2PX9HDN3KETLhtb/gAj/nTpQTVGb8y2ykRL+YyGBBWXz5p6WWN2Fa47QdmJUbH/AUJUI17f0Zoag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQXTaHhdVEJ/1u1PfPGeFANfxGVj5zmmx54kWlLgUIqAIgJKTbNayG/FAVbqAVhr1POSW7I84c/PdFydtevC0LHac="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"jacobmarble","email":"jacobmarble@gmail.com"},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-0.23.0.tgz","integrity":"sha512-6+qfxAvQM1BZ8pHN7pFlfHKqDw0wsFvRelEmnzr/Y+eRFy3IjDVV2ZsU0qiWPbspn46cAXZj/dF1Zi0fftRulg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTkiuN0tReT4TAHdJS1Gyp1DpxWGRjv6X8qrT39wP4wQIhAM0KBoY+FUSd/ojaizBEEIGeDBeTrW69pj/EjTjNyvGn"}]}},"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","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-1.0.0.tgz","integrity":"sha512-2Hp4+h29WkaYf3eudZwYttm7efBuMdvWgCkD7xMveAxDqzIeB2WasyEWHHxxh7iHXehDH5NFEZ2X4q1uaZOxnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwiyHms9w6QpfHnkdDaDuZyswVr6ebIBBkWdNyNGXbnwIgPLgdP27s5b8x9SopN20TwHCH07tF5oRom5XcL8GFFx8="}]},"maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-1.1.0.tgz","integrity":"sha512-oowG+vj0RXsqcTkFpovueABcNM15dB1fgED0Xu34eTSqSAbwXAguqm5neMirSHP1XiPzZp7HHwv7IU532Q6J3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCym1FNEUtp59zbCM+j8bMiLYtIu/whzht2p49O0qyvsQIhAKWWwv247EX/nkLkThKYnZBQKYABGLVa0k9ebe8K8mQt"}]}},"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","tarball":"https://registry.npmjs.org/wgxpath/-/wgxpath-1.2.0.tgz","integrity":"sha512-C1Whl8ylgNBOBA4Tg0APpjDxEDXzDtiPvEKC4l0HjHTFwYn+/WhisBGWwQXg4bwiNZ7N5xNXlXpm13NcMm/ykA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOO065tNAJy61Onxn+mC6xxd3cmoIEbLoU9V0O8e58vAIhAMCNmE9jltseM+OvCvdJhAsmUlg8anZoVGl6bWq4SItA"}]},"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"}}},"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","maintainers":[{"name":"jacobmarble","email":"jacobmarble@gmail.com"}],"time":{"modified":"2022-06-29T01:18:34.301Z","created":"2013-01-14T03:36:35.776Z","0.12.0":"2013-01-14T03:36:36.530Z","0.12.1":"2013-01-14T03:44:27.289Z","0.20.0":"2014-03-15T06:01:24.165Z","0.20.1":"2014-03-15T06:08:55.112Z","0.20.2":"2014-03-16T22:25:09.080Z","0.23.0":"2014-08-17T20:17:27.348Z","1.0.0":"2015-04-13T06:17:08.801Z","1.1.0":"2015-08-21T07:20:54.316Z","1.2.0":"2016-02-17T18:15:27.279Z"},"author":{"name":"Jacob Marble","email":"jacobmarble@gmail.com"},"repository":{"type":"git","url":"git://github.com/jacobmarble/node-wgxpath.git"},"homepage":"https://github.com/jacobmarble/node-wgxpath","keywords":["xpath","wgxpath","wicked-good-xpath","parse","html"],"bugs":{"url":"https://github.com/jacobmarble/node-wgxpath/issues"},"readmeFilename":"README.md","users":{"jden":true,"ageorgios":true,"jsdnxx":true,"nice_body":true}}