{"_id":"xml-query","_rev":"15-d60933e8b982d8f48783b346d2b1b24c","name":"xml-query","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","dist-tags":{"latest":"1.5.0"},"versions":{"1.0.0":{"name":"xml-query","version":"1.0.0","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"index.js","scripts":{"test":"node test/test.js"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"tape":"^4.5.1","xml-reader":"0.0.6"},"gitHead":"cd75f6248597fbe723050cd96f66928f52430977","_id":"xml-query@1.0.0","_shasum":"ce2b53acfb9c111c246db402a999abdc44be806a","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"ce2b53acfb9c111c246db402a999abdc44be806a","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.0.0.tgz","integrity":"sha512-F8oFHihqzTQLMV6FjMpvVwM8hN9FkiaH4uD4+a2M2uht/pNwWMJQDfXAEVh4RgDelRe4cdl5HTXuIzkaa5Lqdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2eDIk5SWR1sGhglULtGcscYcOKI2FWQLPm3CKnSeKvgIhANEaAYwl8WXdz7eYiENYWtnIDBiTkupmwD4PlQWDj3Fv"}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-query-1.0.0.tgz_1466336359706_0.5451947338879108"},"directories":{}},"1.0.1":{"name":"xml-query","version":"1.0.1","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"index.js","scripts":{"test":"node test/test.js"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"tape":"^4.5.1","xml-reader":"0.0.6"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"26873b061354dfbb1f0034e077999701d7fb6994","_id":"xml-query@1.0.1","_shasum":"8a72118b83f9d0a2213f9c7622e62f1add6d0f7d","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"8a72118b83f9d0a2213f9c7622e62f1add6d0f7d","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.0.1.tgz","integrity":"sha512-QE/Gt/z+p3P3T5pWGwLTxFXg6ibFMO9jWiPyCC2CgijxPxgN1nkVf6971SiiN42jAgePLGRe9p3sAJi5MHI0Kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwelFkfCOoojOFZ8efq2s+RPvOxShu+J87opUPYxVcvgIhAPVyE4wFDrkZcWOkj871zZg/Pi0ODY83nbmbm7lVkGbt"}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-query-1.0.1.tgz_1466344794902_0.22756805969402194"}},"1.1.0":{"name":"xml-query","version":"1.1.0","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"build/index.js","scripts":{"test":"node test/test.js","pretest":"tsc","prepublish":"npm test"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"tape":"^4.5.1","xml-reader":"0.0.6"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"d88af8ed2e5b90551e3b16c1b5f2954c43524202","_id":"xml-query@1.1.0","_shasum":"7b09306cfa3a8a773a6fd2d6a95be38e6255531e","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"7b09306cfa3a8a773a6fd2d6a95be38e6255531e","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.1.0.tgz","integrity":"sha512-F+b4XGndzoymzRJfHanXyH0iIyKl5Kop4LiQ6xwGgdvuLsIQtaeZBQRsMVwHf59TZylq3M5u2lwcXMVuuTTwPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoT8yXDHJx1zF71gwnhuwjXTo6yiuqrGIKWMsFiWozvAiEAxCo5Lz/Afn/Qrn9UIbsbb+WPZpIxXQrNSq8d6ZMlEDY="}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-query-1.1.0.tgz_1466368264426_0.5399095255415887"}},"1.2.0":{"name":"xml-query","version":"1.2.0","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"build/index.js","scripts":{"test":"ava test/test.js","pretest":"tsc","prepublish":"npm test"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"ava":"^0.15.2","xml-reader":"0.0.6"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"aa6fc0e30ffca67e3a8a195cb18c4234c2d9a519","_id":"xml-query@1.2.0","_shasum":"85ab87de5e17a8f48e402c5178077bce11eac88b","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"85ab87de5e17a8f48e402c5178077bce11eac88b","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.2.0.tgz","integrity":"sha512-t5gHV7FzBU0lVi/dRrkSK0It4dO2SlCS1eR0XnDofmhYdxiyVLwbiwxDTI57PIVgvfcFYE5Gzv99As7NZSXJFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlubRsX/jn1DAv3Du/BZepIeLwEK825P5qDDTo5ycPCwIgOZanyeTf50NbnW1vdmIJ87fcqI+J8FgN/X0rJF0D/Is="}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-query-1.2.0.tgz_1467124309783_0.4786131565924734"}},"1.2.1":{"name":"xml-query","version":"1.2.1","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"build/index.js","scripts":{"test":"nyc ava test/test.js","pretest":"tsc","prepublish":"npm test","report":"nyc report --reporter=html && opn coverage/index.html"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"ava":"^0.15.2","nyc":"^6.6.1","opn-cli":"^3.1.0","xml-reader":"0.0.6"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"c1238d0dc709fc3f4d3ba8d23c492f9dd15d4497","_id":"xml-query@1.2.1","_shasum":"beeac0baab9fc449a23eee228f6ad0c4d25bcf3b","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"beeac0baab9fc449a23eee228f6ad0c4d25bcf3b","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.2.1.tgz","integrity":"sha512-nfnNJieV1bimIuaPrP2SQeNmCUhKwsMXJeG3cTxEOyZsWvV6/MlGVbbM3KAHzFTe+rWpAYlIl13g1sC5ps8j+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZVY86OoLkGLokZa/5SfzCw0IsoXsRgMOUODir+R15dAIhAKrTS9j3mvtM8FkmX4hEnbRMaoa6gejosXc178v4Vf1C"}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-query-1.2.1.tgz_1467126794815_0.17738836095668375"}},"1.2.2":{"name":"xml-query","version":"1.2.2","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"build/index.js","scripts":{"test":"nyc ava test/test.js","pretest":"tsc","prepublish":"npm test","report":"nyc report --reporter=html && opn coverage/index.html"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes","xpath"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"ava":"^0.15.2","nyc":"^6.6.1","opn-cli":"^3.1.0","xml-reader":"0.0.6"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"8cb4536e38e9ea1381cc43af354e80ef2257235d","_id":"xml-query@1.2.2","_shasum":"6a0d8e21a14a423316cfd6d0723efe21cdd89a68","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"6a0d8e21a14a423316cfd6d0723efe21cdd89a68","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.2.2.tgz","integrity":"sha512-Cd+LdisHbnleySkkhoCZ4yLNi9PeVMhp1yytdJvDHswgu7AvpXXsX+iB2wj2NsydSbD8WDHi/KMs5gcHGSJ6WQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaZbXvUwoKsW8UwBhQOHrXz++cVVeaF0NoUFELsPeaGQIhAMAiaAkJWCqVHMQ6ya7HKCBGKdfge5CJkwF2TvpWFdWO"}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-query-1.2.2.tgz_1467138892049_0.5892495480366051"}},"1.3.0":{"name":"xml-query","version":"1.3.0","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"build/index.js","scripts":{"test":"nyc ava test/test.js","pretest":"tsc","prepublish":"npm test","report":"nyc report --reporter=html && opn coverage/index.html"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes","xpath"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"ava":"^0.15.2","nyc":"^6.6.1","opn-cli":"^3.1.0","typescript":"^1.8.10","xml-reader":"0.0.6"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"b505dbd4d8f096ca694e15e66cd1bdbe90de06be","_id":"xml-query@1.3.0","_shasum":"e050e26832df590373a6157a14c6b9e31d02aa62","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"e050e26832df590373a6157a14c6b9e31d02aa62","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.3.0.tgz","integrity":"sha512-90x3LWH5xHmySSLy4rCi7buP7wVwDHqxBzP5nCsyHws4MxfTilNSOx08GC8+WEsA2pJ2lrU/akdsILC+aGahhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKOe/LNVKwN6gu0o+CZBYmRHufUiyEqqqBECSSFXTr7AIhAJjMAD2xojrBLDiLFxv1fp3JXaKy3Xqq/NkFkJP5L0Vd"}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-query-1.3.0.tgz_1468263097495_0.8917849261779338"}},"1.3.1":{"name":"xml-query","version":"1.3.1","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"build/index.js","scripts":{"test":"nyc ava test/test.js","pretest":"tsc","prepublish":"npm test","report":"nyc report --reporter=html && opn coverage/index.html"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes","xpath"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"ava":"^0.15.2","nyc":"^6.6.1","opn-cli":"^3.1.0","typescript":"^1.8.10","xml-reader":"0.0.6"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"91661f7bbb550b87186c15a027987b4321f00e75","_id":"xml-query@1.3.1","_shasum":"fb718fbbe01e5b4b8e8b6fbb88a06d5c3cc63bfb","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"fb718fbbe01e5b4b8e8b6fbb88a06d5c3cc63bfb","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.3.1.tgz","integrity":"sha512-25o0aoXnGjOz9NQlGiGWWzIT4xLmFoOBeEhYbpS8Gzm96dSJ0vXFIjcoomS9FjaQcUdaTZ9C9zV936Id+KqcIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAq/xbfamLQPn90plOrkqs67Iprmhpbktq2DGNjXP0c0AiB0qY4XYOzAk4ED3/S3KjBQRDoTOrA8VU0vVP9OEdgcxA=="}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-query-1.3.1.tgz_1471737857938_0.6730169616639614"}},"1.3.2":{"name":"xml-query","version":"1.3.2","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"build/index.js","scripts":{"test":"nyc ava test/test.js","pretest":"tsc","prepublish":"npm test","report":"nyc report --reporter=html && opn coverage/index.html"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","values","attributes","xpath"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"ava":"^0.15.2","nyc":"^6.6.1","opn-cli":"^3.1.0","typescript":"^1.8.10","xml-reader":"0.0.6"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"a53641ccbe5f3375f48c3c8bb13e7aa2410a3854","_id":"xml-query@1.3.2","_shasum":"512fe23f9853aa6f5044febbe13217cbb1a2bea3","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"512fe23f9853aa6f5044febbe13217cbb1a2bea3","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.3.2.tgz","integrity":"sha512-EJTFGuZ7RbmMTSWXzkcSdjK2hoaPDKcyw5UU2bswpjJoELJZiZ+AHvUsO7boD76z3CvdJev5B/kJC2ENXeknBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9xeWcPjhrg5NpPUb+2Sq3FQgLiQZ23H6id/N5K/jBOAiBSVFx1VGhLMPll8cNNXjjCWefVIKRMr/LADC5csDDMrA=="}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-query-1.3.2.tgz_1473427132173_0.6698379206936806"}},"1.4.0":{"name":"xml-query","version":"1.4.0","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"dist/index.js","scripts":{"test":"nyc --reporter=lcov --reporter=text ava test/test.js --verbose","pretest":"tsc","prepublish":"npm test","report":"nyc report --reporter=html && opn coverage/index.html","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"keywords":["xml","ast","get","query","jquery","xquery","get","read","tags","values","attributes","find","children","nodes","xpath"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"ava":"^0.15.2","coveralls":"^2.11.14","nyc":"^6.6.1","opn-cli":"^3.1.0","typescript":"^1.8.10","xml-reader":"^2.4.3"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"2a1561688b05bb35e3a9ab7b24ef2aa752422796","_id":"xml-query@1.4.0","_shasum":"a1d2aa636dfaa190a0d632c04c10f5ecb1025613","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"a1d2aa636dfaa190a0d632c04c10f5ecb1025613","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.4.0.tgz","integrity":"sha512-XvAtSd1HlO0yKhDKctC520YAeTeZEFrN42ds8azlrN94KcPnNSOVZ70peDQ8AaO9h9DM3smZQVMZz+sPHk0QiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDbSU6q/mBoli3xKyaRZLpnLzQzpRpIpEgrgeeMbh+LgIhANPaEB+O54PAoUHFKvJ5+49xCnNF4ZMI8FC5LGBu0k/7"}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-query-1.4.0.tgz_1475508106714_0.42186443600803614"}},"1.5.0":{"name":"xml-query","version":"1.5.0","description":"Super small library to retrieve values and attributes from the XML AST generated by xml-reader","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"nyc --reporter=lcov --reporter=text ava test/test.js --verbose","pretest":"tsc","prepublishOnly":"npm test","report":"nyc report --reporter=html && opn coverage/index.html","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"keywords":["xml","ast","get","find","query","get","read","tags","values","attributes","find","children","nodes"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","devDependencies":{"ava":"^0.15.2","coveralls":"^3.0.2","nyc":"^13.1.0","opn-cli":"^3.1.0","typescript":"^1.8.10","xml-reader":"^2.4.3"},"directories":{"test":"test"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"homepage":"https://github.com/pladaria/xml-query#readme","gitHead":"65762353803fdea8ea5cf65968da8dc67f0276e5","_id":"xml-query@1.5.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"integrity":"sha512-I0juLjrVBuuM4PE5wb2Dz6PoqyQBtjlMXjsGHj1WqeDbtRuozKvbzjaMQFNC9nLoUYP88X9/yWCTIet/LRQjrg==","shasum":"eec522505682f0ac585c10711d20856827dcda50","tarball":"https://registry.npmjs.org/xml-query/-/xml-query-1.5.0.tgz","fileCount":8,"unpackedSize":16128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbr6E7CRA9TVsSAnZWagAACBsP+wbdF+L77nR9lHLMyd0V\nTJFEiTpc+Cx6TGS0vJuQa5/EDzuxyZeCE67HZgdmNf4RNMB8nGgWn5epJRPS\nUYSXQHoK8ZQV8gBgW+EPhT+dVsM5finh8itafZUlT9Aub0PKRtvZkogSf6hm\nh9ebY6qTZseRJsxDqJQQWbRdIxFgMETu4BUlO717yaYBETq8Xt58MjhnI0Dz\nLLesUpvCEHVMAT1+dGsc/wG/xdpeAjaocTyOqFfJD9xEAjhh8gmyliOrdMl+\nOUM185FCZqFdmS3aKsnoNDMuKdoNrXeOKlZdhhpTwlia4JATRzxMyKljITe0\nAYMNs2lYDX35lgi91XoMjcH+63e3R6TtcVkwpX5QZmNxPEbQBXWQg4qO1j6q\nynrCmtJ/fYAErFHIGBt1XnwSZZm3uEdadh2gUGYSI+5exSiYxRQTzN+0TugS\n47kuBCUQIijTPOK6fb5K32V6cEEh8nqwrRTyPwn6jrzKMQMoUGXHJ6OYSYD0\ndDzuqhdMeVJRntEiRWHKzn38CTBlkTZFP/0GxJg/WWNUVMEYRDywwBjMYzvF\nThvWvmF5pdKc4gvRecm3ePCbpdWaQOgXtI2sl2MWLafci6B8gX2m+yEld3wP\nWMM3I7vE41fBBO/5OqYwDUQ8M4vBSTPL7JgP+DQEpJWQgLMTkk86B8rJx5gn\nLv9l\r\n=GSdO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChnF9fDgTRP5gzJouR/KuMXxonbE/vJbexWbZDJJPOsQIgDGwJGHbPMoq125dauRnGOdP3SZsk8857K/hetDHvrOs="}]},"maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xml-query_1.5.0_1538236731315_0.5926764974972814"},"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n<img width=\"80%\" src=\"https://raw.githubusercontent.com/pladaria/xml-query/master/logo.png\" alt=\"XML-Query\"/>\n</p>\n<p align=\"center\">\nSuper small (~60 LOC) library for retrieving values and attributes<br>\nfrom the XML AST generated by <a href=\"http://github.com/pladaria/xml-reader\">xml-reader</a><br>\nwith an easy-to-use jQuery-like interface.\n</p>\n<p align=\"center\">\n<a href=\"https://travis-ci.org/pladaria/xml-query\"><img src=\"https://travis-ci.org/pladaria/xml-query.svg\" alt=\"Build Status\"/></a>\n<a href='https://coveralls.io/github/pladaria/xml-query?branch=master'><img src='https://coveralls.io/repos/github/pladaria/xml-query/badge.svg?branch=master' alt='Coverage Status' /></a>\n</p>\n\n## Install\n\n```bash\nnpm install --save xml-query\n```\n\n## Usage\n\n### Reading xml streams/strings\n\nThe following XML will be used to illustrate all examples\n\n```xml\n<message id=\"1001\" date=\"2016-06-19\">\n    <from>Bob</from>\n    <to>Alice</to>\n    <subject>Hello</subject>\n    <body>Bla bla bla</body>\n</message>\n```\n\nLet's read the XML using [xml-reader](http://github.com/pladaria/xml-reader).\n\n```javascript\nconst XmlReader = require('xml-reader');\n\nconst xml =\n`<message id=\"1001\" date=\"2016-06-19\">\n    <from>Bob</from>\n    <to>Alice</to>\n    <subject>Hello</subject>\n    <body>Bla bla bla</body>\n</message>`;\n\nconst ast = XmlReader.parseSync(xml);\n```\n\n### xmlQuery()\n\n```javascript\nconst xmlQuery = require('xml-query');\n\n// creating from single ast\nconst xq = xmlQuery(ast);\n\n// creating from an array of asts\nconst xq = xmlQuery([ast, ...more]);\n```\n\n### .get()\n\nRetrieve one of the elements.\n\n```javascript\nxmlQuery(ast).find('body').get(2); // returns the `subject` node\n```\n\n### .find()\n\nFind by name. Including top level nodes and all its children.\n\n```javascript\nxmlQuery(ast).find('body'); // xmlQuery containing the body element\n```\n\n### .has()\n\nReturns `true` if it has the given element. Faster than `find()` because it stops on first occurence.\n\n```javascript\nxmlQuery(ast).has('body'); // true\n```\n\n### .attr()\n\nGet all attributes. If a name is provided, it returns the value for that key.\n\n```javascript\nxmlQuery(ast).attr(); // {id: '1001', date: '2016-06-19'}\nxmlQuery(ast).attr('id'); // '1001'\n```\n\n### .children()\n\nReturns a new xmlQuery object containing the children of the top level elements.\n\n```javascript\nxmlQuery(ast).children();\n```\n\n### .each()\n\nIterate over a xmlQuery object, executing a function for each element.\n\n```javascript\nxmlQuery(ast).each(node => console.log(node.name));\n// from\n// to\n// subject\n// body\n```\n\n### .map()\n\nIterate over a xmlQuery object, executing a function for each element. Returns the results in an array.\n\n```javascript\nxmlQuery(ast).map(node => node.name); // ['from', 'to', 'subject', 'body']\n```\n\n### .prop()\n\nGet the value of a property for the first element in the set.\n\n```javascript\nxmlQuery(ast).prop('name'); // 'message'\n```\n\n### .text()\n\nGet the combined text contents of each element, including their descendants\n\n```javascript\nxmlQuery(ast).find('subject').text(); // 'hello'\n```\n\n### .eq()\n\nReturns a new XmlQuery object for the selected element by index\n\n```javascript\nxmlQuery(ast).children().eq(2); // xmlQuery containing the 'subject' node\n```\n\n### .first()\n\nReturns a new XmlQuery object for the first element. Same as `.eq(0)`\n\n```javascript\nxmlQuery(ast).children().first(); // xmlQuery containing the 'from' node\n```\n\n### .last()\n\nReturns a new XmlQuery object for the last element. Same as `.eq(length - 1)`\n\n```javascript\nxmlQuery(ast).children().last(); // xmlQuery containing the 'body' node\n```\n\n### .length\n\nNumber of elements. Returns the same result as `.size()`\n\n```javascript\nxmlQuery(ast).children().length; // 4\n```\n\n### .size()\n\nNumber of elements. Returns the same result as `.length`\n\n```javascript\nxmlQuery(ast).children().size(); // 4\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"pladaria","email":"pedro.ladaria@gmail.com"}],"time":{"modified":"2022-06-29T05:37:04.042Z","created":"2016-06-19T11:39:20.931Z","1.0.0":"2016-06-19T11:39:20.931Z","1.0.1":"2016-06-19T13:59:56.135Z","1.1.0":"2016-06-19T20:31:06.852Z","1.2.0":"2016-06-28T14:31:52.037Z","1.2.1":"2016-06-28T15:13:17.102Z","1.2.2":"2016-06-28T18:34:53.153Z","1.3.0":"2016-07-11T18:51:38.983Z","1.3.1":"2016-08-21T00:04:19.292Z","1.3.2":"2016-09-09T13:18:53.608Z","1.4.0":"2016-10-03T15:21:48.169Z","1.5.0":"2018-09-29T15:58:51.483Z"},"keywords":["xml","ast","get","find","query","get","read","tags","values","attributes","find","children","nodes"],"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/pladaria/xml-query#readme","repository":{"type":"git","url":"git+https://github.com/pladaria/xml-query.git"},"bugs":{"url":"https://github.com/pladaria/xml-query/issues"},"users":{"jabney":true}}