{"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.9","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":"3836af47f27247fa0d2cf0d63986ff1f2f38974c","homepage":"https://github.com/libxmljs/libxmljs#readme","_id":"libxmljs@0.19.9","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-oPgeDf4Hc4KG9HKbKEQlRCKr605Efz4YFcRIw/jroVIqTTdicLxYGsum5o/Be5N1P5v7npil7N7OFvak5A43hg==","shasum":"e005843068a8eec6d294cf7c5bf6a95a6a7c0cb2","tarball":"http://registry-npm.ywwl.com/libxmljs/download/libxmljs-0.19.9.tgz","fileCount":189,"unpackedSize":7089428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx4LSZW+cZdBg639eGYnJMVzB4jS0gmKj9fmUH3agKjgIgRL1+YJDWx+DjMZ+6O5JTWtLYZN0JSRo/uEuYKh6J4oA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidUaMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2hA//TrIFUTN+1ZvqCl+xZUroSWI86U4hflGW8cBZEuHlwtbEoexP\r\nKM6Iv8Xx/yOgHt9+inVk4dd7NLPU0t5hix+lDSZgjjESdJdE2P70xsZ2nYJh\r\nXe2b98Kzlsg7ih+hqBKHhHSVXp0zWps14wmU2+mDzPZSsrwSuJ1arkdxoo1A\r\n/lxdoSRtzovZxHeD7Qsq3zhML79R+1f2ltMvr25wGzWzNOL990pz06qkUbh2\r\njfWS0bUYVKJBpW+7LfgBgTj9uvKqb2zuZel540zS/ZCVzrnKIjs4RRxTwkQl\r\n0L7gNM42G72MMlXwpn2odM4iL/dLUIO7euKj9pEZ+DAwNm7/Vgp6kXgYVhZu\r\nrzGXNnnpycC9ZjNSWw1Gk9cS7ASMbZqeFzKMkxfvs7ZQ2Wlx5cuXSM5NY5uf\r\n93nQQm2FjWKtOoJgUSFbTGZMpXco8fYxRzuSuPXZQWwY7voug5up494EH3oT\r\nUoA1xOcDoDavB+JiFbi3TqqujLz5QCyulJ0c8/LaLdD3eRbBsy8Ko87SOjng\r\nxyBjD+TtTTxOSCEXwL3YdZa1tzjpDOK7muKDFTJ6hYUyOxL2mY8iFY027/Lu\r\nMjS8dZ5Ud6/gUsmLi58gCnQuHbLpS2kNhw0OSAF8WvfZGWpVNSZJUTEg//OG\r\nRSPByLHoHZtJPA6iXSiy8OWo+JUMUaSWp0E=\r\n=fbC7\r\n-----END PGP SIGNATURE-----\r\n","size":1273415,"noattachment":false,"key":"/libxmljs/-/libxmljs-0.19.9.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.9_1651852940396_0.4358939540932867"},"_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":1651852940594,"_cnpm_publish_time":1651852940594,"dist-tags":{"latest":"1.0.11"}}