{"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.3","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":{"bindings":"~1.3.0","nan":"~2.10.0","node-pre-gyp":"~0.11.0"},"devDependencies":{"nodeunit":"~0.11.2","semver":"~5.5.0"},"gitHead":"7f6b2a236b7caeabb44b1c53afca3c75dd578d4b","homepage":"https://github.com/libxmljs/libxmljs#readme","_id":"libxmljs@0.19.3","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"rchipka","email":"chipka01@email.franklin.edu"},"dist":{"integrity":"sha512-0fpvneF7qpOe6PLbwFXZx+deZ/U2nethmnVLUZ9aH0Pz9Nfha9S+rlIGIS4ixtmUjwtA0VSE4LvIjVCEvboPpw==","shasum":"3f7232a4123952b338f5334e55ea1396fa0d9cd2","tarball":"http://registry-npm.ywwl.com/libxmljs/download/libxmljs-0.19.3.tgz","fileCount":183,"unpackedSize":7076811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfumyCRA9TVsSAnZWagAAC/wP/07oq9F+4cTnFb/qxf6v\n3R5z2Ye36pzMGWStm7uL51YlllUllRfU6mpEmqqo7pveudhBfDJueNTyImAc\n6uDepl6/+JRCvWN7a9031AC5oDZf9gMFYm6SBXu0QTg1k5DTB8G79MvYRNl/\nr+aWgtcFnkQ6k/gEYwStE9uZMx2gEuAHshxK8mERRXLI8lnITdxBrxYZGmiJ\nyUfx/75RzOz/sReTCZmNCYaTqIVtvEBGo+NcnXPKEB8wwUWgs1axvUxNymrA\nE+s4dCNjy0E35LyHWShsfFaVWsyfYu87gSiZYYZGyif0CfIewiL9rZsPOhcq\ngdVv02ShY05aW8sp75jftDvujPKaIo6L/TzKda3rdDW4ULL26cK1r5lBMTn2\nWF37N7A1aQIVMlaixZy8dqtMWK2mzrY+BisYcB7HSIp0C9ySD27zCdvHjMx4\nKKx5P+crh53RJwy1TKgPhFRi0MuwoEMEWq2/SsVHqHpA0yp9nGQ7ElCqDJhS\nHyajYgeqH/u04blHnT/BIgHEn+DAq/sDCObKtQEY2RFfradBr3wgexvy65c4\nh/iJgyWMeZIGVJjtLju/SMCFgrCeO+kcmdSbjzLk9LefQXD8KMfspAI6Zif4\nPcoADIk3dTMu7uEmOMOZ7hKG6ZO2Lm3shJr0hOLQjQiUGcyDSHvSfKyuX6SO\n/8pB\r\n=/nP1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZKS5dbC07pb/abCr6juGxP6OX3v8KLg7CFSsFurF7WQIgNBMiOv7yJDaYZq+jiQ1dIsHTPEldH2X3DcMtguGq68g="}],"size":1283389,"noattachment":false,"key":"/libxmljs/-/libxmljs-0.19.3.tgz"},"maintainers":[{"name":"defunctzombie","email":"shtylman@gmail.com"},{"name":"polotek","email":"marco.rogers@gmail.com"},{"name":"rchipka","email":"chipka01@email.franklin.edu"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libxmljs_0.19.3_1535044017927_0.10153957080987164"},"_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":1535044018056,"_cnpm_publish_time":1535044018056,"dist-tags":{"latest":"1.0.11"}}