{"_id":"xpath.js","_rev":"24-dbe9c20cad579087b55c7da6cdac46dc","name":"xpath.js","description":"Xpath pure javascript implementation for node.js","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"xpath.js","version":"0.0.1","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"git://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"keywords":["xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"_npmUser":{"name":"yaron","email":"yaronn01@gmail.com"},"_id":"xpath.js@0.0.1","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"74f36a3535f390e64409f3c68cc49e45fa216e5d","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-0.0.1.tgz","integrity":"sha512-55GelRU+nTdytgWzhLakk3csYTn0ApGR7trM18PytEJT4/xCJYgQYPlzw5D+cmiuKG0sj/CVPN8ayXxSaoNgKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAEjGXqeXYZ3GHtuZu5k6/PfO5IEvEfA0AWL42eRcFvbAiBWVyqxuaIaj2+6QMeqZ9JXnQb4EOk3hnNGXo2KNW7H7Q=="}]},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}]},"0.0.2":{"name":"xpath.js","version":"0.0.2","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"https://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"keywords":["xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"xpath.js@0.0.2","dist":{"shasum":"c74dcc66b411ad9fb6c761ae95f5d50487862864","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-0.0.2.tgz","integrity":"sha512-WUBiPMwqVB/oKrXt47nkgMByygPCylXYUSNlXc/34YWOfE88mUlFH4MSoqndru23ZwaiPP1jsO2XV4x/POlWMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3fq+xnNdgJxhF/3op9zI866owIoqobka+3Lu2itSUfgIhAK/CbWfVgr9t4WlnC2C+gRYy05FdWLeeIa8hQTiL5fEm"}]},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}]},"0.0.3":{"name":"xpath.js","version":"0.0.3","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"https://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"keywords":["xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"xpath.js@0.0.3","dist":{"shasum":"43f83b6762557fb40c6e124b440b899745ea40d6","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-0.0.3.tgz","integrity":"sha512-52ZjYsAdwSNlmz0JcJlVwqcJ2WxLcFmQIWOG4aN9Do6w7947OdQeS9fyuyGbF2+lhW+bflZZRaxruW9QzFRmfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOKkXnBp2IU9WulCxDx+xqf2Am7MNOq8sA1OV8f9Cx2wIgQQHSCTq+sAclmdet+SbWRVBV3BQPX5U7EIDL0pGEbAk="}]},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}]},"0.0.4":{"name":"xpath.js","version":"0.0.4","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"https://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"keywords":["xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/yaronn/xpath.js/issues"},"homepage":"https://github.com/yaronn/xpath.js","_id":"xpath.js@0.0.4","_shasum":"46e37a3ccda20ee7164055c4d6b45da38c1c8a81","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"yaron","email":"yaronn01@gmail.com"},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}],"dist":{"shasum":"46e37a3ccda20ee7164055c4d6b45da38c1c8a81","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-0.0.4.tgz","integrity":"sha512-wlPYCnNyh4Rpiz/SeMU7vPJwgz0qECeh34YDRypKE3pdqrJfmGq3t0We2xx3IrwVFO6nSXeSr4rLqsUfqyLm3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwRtw0ZldadBK9ySPQLch4AlzBtBO9n9q6Z2gjB1+cHwIgCqmeF7Arw4xbU4tGhaVZ9gEDyW9lAQbUXDUsj0i9wLg="}]}},"1.0.4":{"name":"xpath.js","version":"1.0.4","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"https://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"scripts":{"test":"nodeunit test.js"},"keywords":["xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"415e748375434cb52821865130cf014d57542b98","bugs":{"url":"https://github.com/yaronn/xpath.js/issues"},"homepage":"https://github.com/yaronn/xpath.js","_id":"xpath.js@1.0.4","_shasum":"0a1a85afb68521b3054b9856c83f1630bcdf354e","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"yaron","email":"yaronn01@gmail.com"},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}],"dist":{"shasum":"0a1a85afb68521b3054b9856c83f1630bcdf354e","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-1.0.4.tgz","integrity":"sha512-rDgLoxy2qf+k+/8P4NlNI+ppn1ariF/+8c+5Y/GsXCitZ6L+kJa8207D21ZgfeY5HSYvJ96l3orVWKM4egC0cQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0Oqs5kjl22+oQPx79cD3Cs3n/RDMVaFrOseqwrYWAgAiEAxegkhUCcMe1NJMQoyzOgcKnZ0zEPHgRElbX8pZVMZLg="}]}},"1.0.5":{"name":"xpath.js","version":"1.0.5","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"https://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"scripts":{"test":"nodeunit tests/test.js"},"keywords":["xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"240333f1e0ec3f58a9f740c60e82e6a92556d3ae","bugs":{"url":"https://github.com/yaronn/xpath.js/issues"},"homepage":"https://github.com/yaronn/xpath.js","_id":"xpath.js@1.0.5","_shasum":"763da39c23998b80e65e85dfbbd28ddb723da3ea","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"yaron","email":"yaronn01@gmail.com"},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}],"dist":{"shasum":"763da39c23998b80e65e85dfbbd28ddb723da3ea","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-1.0.5.tgz","integrity":"sha512-LIJdfLGgr4ZIJgOiVm8uF5Rqu5naCtznqbWL4bdyMMObmIN7n7WZrBEg7GV8Zs9lh+sqokEQcJ+/viHEz8pLRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDovnTiWdp/UL3ztJu+nW8PKjlhb6r0+hs2NIH+XjcCLwIge7N79WN7k36jS8HtxjFJi4fE9f5hcdeiW7MZPV6CqrQ="}]}},"1.0.6":{"name":"xpath.js","version":"1.0.6","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"https://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"scripts":{"test":"nodeunit tests/test.js"},"keywords":["xpath","xml"],"license":"MIT","gitHead":"9ed305904cd3375640e038ecb7b6078a0ebc0af3","bugs":{"url":"https://github.com/yaronn/xpath.js/issues"},"homepage":"https://github.com/yaronn/xpath.js","_id":"xpath.js@1.0.6","_shasum":"fe4b81c1b152ebd8e1395265fedc5b00fca29b90","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"yaron","email":"yaronn01@gmail.com"},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}],"dist":{"shasum":"fe4b81c1b152ebd8e1395265fedc5b00fca29b90","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-1.0.6.tgz","integrity":"sha512-GoHxT/9/1z8c6ZS3/M6C0vK8e5yMl4fSiVfqn+49tqJJYIrel1ktAou0ta0zx7Gsvv+RJe5l72E6ND1MeSfG3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgFd8DJmObnFmWJp7bKWWai8w5B+EBOUwGLazKVm6kiwIhAJt76UmaD5SIkWDqaiGB5Ac5DJ5WNoJWJJMqVcyl1NDN"}]}},"1.0.7":{"name":"xpath.js","version":"1.0.7","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"git+https://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"scripts":{"test":"nodeunit tests/test.js"},"keywords":["xpath","xml"],"license":"Creative Commons Attribution-ShareAlike License","gitHead":"9f39a149bd96774b6b28afa400d2306c90f1a64c","bugs":{"url":"https://github.com/yaronn/xpath.js/issues"},"homepage":"https://github.com/yaronn/xpath.js#readme","_id":"xpath.js@1.0.7","_shasum":"7e94627f541276cbc6a6b02b5d35e9418565b3e4","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"yaron","email":"yaronn01@gmail.com"},"dist":{"shasum":"7e94627f541276cbc6a6b02b5d35e9418565b3e4","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-1.0.7.tgz","integrity":"sha512-URccZCBeOwcpDbmDU22iezCasCa6gyzULdlN0vOaMrlZYlxzSbibAUyN+DWQNTHs11LaTiBvFrb3wIji70FO4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDntKHRspKMM/P/yPLi7u0IonTOFlXbPaIvBuf6uUaq7AiA1iWlNhEy7cEgF6AgdVBOvEwTQm1BYguCmIiGjyBI+BQ=="}]},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xpath.js-1.0.7.tgz_1479750622867_0.11006291676312685"}},"1.1.0":{"name":"xpath.js","version":"1.1.0","description":"Xpath pure javascript implementation for node.js","engines":{"node":">=0.4.0"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"dependencies":{},"devDependencies":{"nodeunit":">=0.6.4"},"repository":{"type":"git","url":"git+https://github.com/yaronn/xpath.js.git"},"main":"./xpath.js","directories":{},"scripts":{"test":"nodeunit tests/test.js"},"keywords":["xpath","xml"],"license":"MIT","gitHead":"e1e57637f1dc7ab1f415bb2f8980a18354261c88","bugs":{"url":"https://github.com/yaronn/xpath.js/issues"},"homepage":"https://github.com/yaronn/xpath.js#readme","_id":"xpath.js@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"yaron","email":"yaronn01@gmail.com"},"dist":{"integrity":"sha512-jg+qkfS4K8E7965sqaUl8mRngXiKb3WZGfONgE18pr03FUQiuSV6G+Ej4tS55B+rIQSFEIw3phdVAQ4pPqNWfQ==","shasum":"3816a44ed4bb352091083d002a383dd5104a5ff1","tarball":"https://registry.npmjs.org/xpath.js/-/xpath.js-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCguR+/zRiWDMkiUUFAHsBG3J/adE1xK4wYMe+ajRJZCAIhAL0zesejQXRW0uDSW/mWmlxPXDSPWVlplpfyxuanwXWf"}]},"maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xpath.js-1.1.0.tgz_1515047577708_0.5822539064101875"}}},"readme":"## xpath.js\r\nAn xpath module for node, written in pure javascript.\r\n\r\nOriginally written by Cameron McCormack ([blog](http://mcc.id.au/xpathjs)). \r\n\r\nPrepared as a node module by Yaron Naveh ([blog](http://webservices20.blogspot.com/), [twitter](https://twitter.com/YaronNaveh)).\r\n\r\n## Install\r\nInstall with [npm](http://github.com/isaacs/npm):\r\n\r\n    npm install xpath.js\r\n\r\n\r\n\r\nxpath.js is xml engine agnostic but I recommend to use [xmldom](https://github.com/jindw/xmldom):\r\n\r\n    npm install xmldom\r\n\r\n\r\n## Your first xpath:\r\n`````javascript\r\n\tvar select = require('xpath.js')\r\n\t  , dom = require('xmldom').DOMParser\r\n\r\n\tvar xml = \"<book><title>Harry Potter</title></book>\"\r\n\tvar doc = new dom().parseFromString(xml)    \r\n\tvar nodes = select(doc, \"//title\")\r\n\tconsole.log(nodes[0].localName + \": \" + nodes[0].firstChild.data)\r\n\tconsole.log(\"node: \" + nodes[0].toString())\r\n`````\r\n-->\r\n\r\n\ttitle: Harry Potter\r\n\tNode: <title>Harry Potter</title>\r\n\r\n## Get text values directly\r\n`````javascript \r\n    var xml = \"<book><title>Harry Potter</title></book>\"\r\n    var doc = new dom().parseFromString(xml)    \r\n    var title = select(doc, \"//title/text()\")[0].data   \r\n    console.log(title)\r\n`````  \r\n-->\r\n    \r\n    Harry Potter\r\n\r\n## Namespaces\r\n`````javascript  \r\n\tvar xml = \"<book><title xmlns='myns'>Harry Potter</title></book>\"\r\n    var doc = new dom().parseFromString(xml)    \r\n    var node = select(doc, \"//*[local-name(.)='title' and namespace-uri(.)='myns/']\")[0]\r\n    console.log(node.namespaceURI)\r\n`````\r\n-->\r\n    \r\n    myns\r\n\t\r\n## Attributes\r\n`````javascript  \r\n    var xml = \"<book author='J. K. Rowling'><title>Harry Potter</title></book>\"\r\n    var doc = new dom().parseFromString(xml)    \r\n    var author = select(doc, \"/book/@author\")[0].value    \r\n    console.log(author)\r\n`````\r\n-->\r\n    \r\n    J. K. Rowling\r\n\r\n## License\r\nMIT\r\n","maintainers":[{"name":"yaron","email":"yaronn01@gmail.com"}],"time":{"modified":"2022-06-29T05:53:16.747Z","created":"2012-06-28T12:36:13.159Z","0.0.1":"2012-06-28T12:36:14.134Z","0.0.2":"2012-08-25T22:51:57.977Z","0.0.3":"2012-08-25T22:55:02.450Z","0.0.4":"2014-06-11T17:50:56.383Z","1.0.4":"2014-08-16T09:32:52.705Z","1.0.5":"2014-09-04T13:53:18.482Z","1.0.6":"2015-05-25T13:04:08.323Z","1.0.7":"2016-11-21T17:50:24.875Z","1.1.0":"2018-01-04T06:32:57.868Z"},"author":{"name":"Cameron McCormack","url":"http://mcc.id.au/xpathjs"},"repository":{"type":"git","url":"git+https://github.com/yaronn/xpath.js.git"},"users":{"jindw":true,"jonaswebdev":true,"dofy":true,"daffyfeng":true,"jochemstoel":true},"homepage":"https://github.com/yaronn/xpath.js#readme","keywords":["xpath","xml"],"bugs":{"url":"https://github.com/yaronn/xpath.js/issues"},"readmeFilename":"README.md","license":"MIT"}