{"name":"libxmljs","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":"1.0.9","repository":{"type":"git","url":"git+ssh://git@github.com/libxmljs/libxmljs.git"},"bugs":{"url":"http://github.com/libxmljs/libxmljs/issues"},"license":"MIT","engines":{"node":">=0.8.0"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"init-submodules":"git submodule update --init --recursive","configure":"cd vendor/libxml2.config && cmake configure ../libxml2 && cd ../..","preinstall":"node scripts/preinstall.js","install":"node-pre-gyp install --fallback-to-build --loglevel http -j max","package":"node-pre-gyp package","build":"node-gyp rebuild -j max","build-debug":"node-gyp rebuild -j max --debug","swig":"bash scripts/swig.sh && node scripts/swigfix.js","tsgenerate":"node scripts/swig2ts.js","tsgenerate-debug":"lldb -- `which node` scripts/swig2ts.js","tsc":"node --stack_size=10000 -e \"process.argv=['node','tsc','--diagnostics','--extendedDiagnostics','--listEmittedFiles'];require('./node_modules/typescript/lib/tsc.js')\"","dev":"node --stack-size=10000 -e \"process.argv=['node','tsc','-w'];require('./node_modules/typescript/lib/tsc.js')\"","lint":"tslint -p tsconfig.json","test":"node --stack-size=10000 --expose_gc ./node_modules/nodeunit/bin/nodeunit dist/test","test-debug":"lldb -- `which node` --stack-size=10000 --expose_gc ./node_modules/nodeunit/bin/nodeunit dist/test","docs":"typedoc --includeVersion --excludePrivate --out docs lib/index.ts"},"dependencies":{"@mapbox/node-pre-gyp":"^1.0.9","bindings":"~1.3.0","nan":"^2.17.0"},"devDependencies":{"@types/bindings":"^1.5.0","nodeunit":"^0.11.3","tslint":"^6.1.3","typedoc":"^0.23.28","typescript":"^5.0.2"},"gitHead":"650733271b7ed60b473a76b19791075d55e6e77b","homepage":"https://github.com/libxmljs/libxmljs#readme","_id":"libxmljs@1.0.9","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-lAcNShSQd1IF9DA0WOXiBa5ybOyTyzQsvBLhxxcXhu+25+tZsNpz5eVRTQ5CMbGdVvbUrnR6yK+M6RsjteruRw==","shasum":"dfee6627c38bff96e2478d7799674158915db7a0","tarball":"http://registry-npm.ywwl.com/libxmljs/download/libxmljs-1.0.9.tgz","fileCount":537,"unpackedSize":17660656,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHZvFial419Nt7OaUCDWNEAW8+PgpVCmFF1HXYksNkxlAiAfodMn8rpLKJJdMENr6o9FxsVwGxpJ6hdlt9EI1Nc9Jg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkStRuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoK0A/8DZu354VVf0dpJiJH+IW0gMMYNpI1D0hnFNHrp6anyFi4vQwp\r\ng0ufx5zzYcWegbuOZqPTMAXcK2Y+DQ9K/HagV/zigeDpBXBbCxUt42UhvFWo\r\nVHVukwPhyyzykJKn/KhQQA7a55n75Q8TKo0MJEL7/0Stvp5XCXWEAwuRvDi/\r\n4BoZmTFlUEpW6WQ+iury/tNf0Hou5X3l/qTB8BIMPc01s32h0DUwik9Ay3iA\r\nmp9z7II52l6ycv/h96RF78qO/2Q8xcEkdEidAvrLOlOhGwqiRuXQ1nOt57rU\r\nIYCEm9zvM5eacAxQSuAcw2Fe9BHTbVi/L6Uyu7ZUejsnnU7qdBHf7ktu/QH7\r\nuebD7t4bSat1rvwQR0mFX1nGznPXtO5YmP+WcE2FcdVbUBJAi5nvKB5IC2rF\r\nJ5Q7ExYkFKehwqUvRGYo0pAQ826ZoCbgX4vZzbHKXzQ1v/9lxxmiUbZQuLiE\r\niCovZDM/J+4ob/AcdnENnBbpK5xU1vM34LCSz5yQn6tpweHNEXKZ3W0ZXagh\r\n2osGsBePfRvuX1R4E/8OK5dFkcxwAH8/SWUa7gKXlj7Y5c5xyQE89GlhZ7tL\r\nW2vevWezHgAc9yCjcIfZrdhErAvUDcVZANwi+9lobauvDGOuSy4GI+qwmBgo\r\nhRDXcdzQvXCWrW7uPfHRIK0DdcoseRQc/Fg=\r\n=KYWq\r\n-----END PGP SIGNATURE-----\r\n","size":2290190,"noattachment":false,"key":"/libxmljs/-/libxmljs-1.0.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_1.0.9_1682625645723_0.13759360255634268"},"_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":1682625645971,"_cnpm_publish_time":1682625645971,"dist-tags":{"latest":"1.0.11"}}