{"name":"libxmljs","author":{"name":"Marco Rogers"},"contributors":[{"name":"Jeff Smick"}],"binary":{"module_name":"xmljs","module_path":"./build/Release/","host":"https://github.com","remote_path":"./libxmljs/libxmljs/releases/download/v{version}/","package_name":"{node_abi}-{platform}-{arch}.tar.gz"},"description":"libxml bindings for v8 javascript engine","version":"0.19.8","scripts":{"install":"node-pre-gyp install --fallback-to-build --loglevel http","test":"node --expose_gc ./node_modules/.bin/nodeunit test"},"repository":{"type":"git","url":"git+ssh://git@github.com/libxmljs/libxmljs.git"},"bugs":{"url":"http://github.com/libxmljs/libxmljs/issues"},"main":"./index","license":"MIT","engines":{"node":">=0.8.0"},"dependencies":{"@mapbox/node-pre-gyp":"^1.0.9","bindings":"~1.3.0","nan":"~2.14.0"},"devDependencies":{"nodeunit":"~0.11.2","semver":"~5.5.0"},"gitHead":"27c90841c67b60430c7064c74567a2bfb1d9a2fd","homepage":"https://github.com/libxmljs/libxmljs#readme","_id":"libxmljs@0.19.8","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-B0xPH/Ucco52fY3YEWi3zive8hFscuc71mcWCHTAR88iVgYE18e62T55b5fL6AjkT0sOhxP7rH9cZL80ZK8e7Q==","shasum":"a009279e7c9f2bde154c03f1fea0e1fb0834fdbf","tarball":"http://registry-npm.ywwl.com/libxmljs/download/libxmljs-0.19.8.tgz","fileCount":189,"unpackedSize":7089428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpqDbYdorSwFXAu3F/vN3QdbU2xycMTngGD0XiLvH1OAiEA7+BFItCw4sDnE6Mw2ogRR/xFER0xUzr3UNcJDG1obik="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicpvfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmroLhAAnumXusjtyMPCfvSvZUOzfRz/HDCK/hPyi21nKkZaNE8EtKQD\r\nYVnQIGL2oye8sLLXTdNWhlmjYnPhiWeYsT8d+kxvXfiEPnAUQeOC/u5/RWvj\r\nYLbZespdobi4jgSAQIk72jwwqZq2hQMkQKlV1T95QfyfH3Tyxh0PAH0dOumf\r\nwyPpsyOipaZMuaWRfjdwO+V/5f8Od1aG3kCy941fkkRt//VGfaf1RcRfywNC\r\nq6z6sBUog2Bo+yV8hmdcbrQ7DJQLGyaG0j/HvKGGvFkyhg4yX7C8aVrdT3Z7\r\n5Ro+vAHuVQsALydlTQ9mWouTkcqKD94MpHTeoNkq9xWwRjrp7U5ChCvwdhF8\r\nPmycezExoWLufg1nVDty3iJVY+oFahiut/+txLycn30BdMW5/VeOsT9Ryz3K\r\n3pQDj/P/6lUCap+R1WCZga29gxAqusjZK1juBMlRsLzDRMkxH66RCE/iBqwi\r\n7DYear3vCF/tEQQ7Vc9xSbBUyq2cuA/qbpDD31Dv5//izkSw1dj2918SgYFm\r\nqsUtACTJLFK11ARBiHPln5Rh/fuFKUZuQdi0n2NAe7dS53PxZsYI4LDi7lkz\r\nfm360M0f2/bqb3QpZVHfb2K5xoDpNfLzJHG9UZDMeut9k19u9swi8omOMQWP\r\nah1YQ5VW/Q/TxdiC0kJxSIo0tiLi5zDP+tk=\r\n=K7Fv\r\n-----END PGP SIGNATURE-----\r\n","size":1273416,"noattachment":false,"key":"/libxmljs/-/libxmljs-0.19.8.tgz"},"_npmUser":{"name":"rchipka","email":"rchipka01@gmail.com"},"directories":{},"maintainers":[{"name":"polotek","email":"marco.rogers@gmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"},{"name":"rchipka","email":"rchipka01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libxmljs_0.19.8_1651678175476_0.19759664081294748"},"_hasShrinkwrap":false,"readme":"# libxmljs\n\n[![npm version](https://badge.fury.io/js/libxmljs.svg)](https://badge.fury.io/js/libxmljs)\n[![Downloads monthly](https://img.shields.io/npm/dm/libxmljs.svg)](https://npmjs.org/package/libxmljs)\n[![Downloads total](https://img.shields.io/npm/dt/libxmljs.svg)](https://npmjs.org/package/libxmljs)\n[![Test & Upload](https://github.com/libxmljs/libxmljs/actions/workflows/test-deploy.yml/badge.svg)](https://github.com/libxmljs/libxmljs/actions/workflows/test-deploy.yml)\n\n`npm install libxmljs`\n\nNodeJS bindings for [libxml2](https://en.wikipedia.org/wiki/Libxml2) written in\nTypescript\n\n## Documentation\n\n[https://libxmljs.github.io/libxmljs/](https://libxmljs.github.io/libxmljs/)\n\n## Examples\n\nFor more examples, check out the [test suite](https://github.com/libxmljs/libxmljs/tree/master/test).\n\n```javascript\nimport libxmljs from \"libxmljs\";\n\nlibxmljs\n    .parseXmlAsync(\n        `\n        <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n        <root>\n            <child foo=\"bar\">\n            <grandchild baz=\"fizbuzz\">grandchild content</grandchild>\n            </child>\n            <sibling>with content!</sibling>\n        </root>\n        `\n    )\n    .then((xmlDoc) => {\n        const gchild = xmlDoc.find(\"//grandchild\")[0];\n\n        console.log(gchild.text()); // prints \"grandchild content\"\n\n        const child = xmlDoc.root()?.child(0);\n\n        console.log(child?.getAttribute(\"foo\")?.value()); // prints \"bar\"\n    });\n```\n\n## Package Scripts\n\n`npm run init-submodules`\n\n> Clones libxml2 source code to `vendor/libxml2`\n\n`npm run configure`\n\n> Generate new cmake config headers with cmake in vendor/libxml2.config. Used when updating to a new libxml2 version.\n\n`npm run build`\n\n> Build the C++ source code using node-gyp\n\n`npm run swig`\n\n> Generate a new `src/libxml2.cc` and `swig.xml` file by processing the native code using SWIG. Used when making changes\n> to native code or any of the SWIG interface files (src/\\*.i)\n\n`npm run tsgenerate`\n\n> Generates typescript definitons for native bindings exports. Used when changes are made to native exports.\n> Auto-generates `constants.ts`, `functions.ts`, `types.ts`, and `variables.ts` within `lib/bindings/`\n\n`npm run tsc`\n\n> Compiles Typescript within `lib/` and outputs it to `dist/` Use `npm run dev` to put Typescript compiler into watch\n> mode.\n\n`npm run test`\n\n> Runs all tests in `test/` using nodeunit. Use `npm run test -- -t TEST_NAME` to run a specific test.\n\n`npm run docs`\n\n> Generates `docs/` using Typedoc\n","publish_time":1651678175682,"_cnpm_publish_time":1651678175682,"dist-tags":{"latest":"1.0.11"}}