UNPKG

libxml2-wasm

Version:

WebAssembly-based libxml2 javascript wrapper

74 lines (73 loc) 2.91 kB
{ "name": "libxml2-wasm", "version": "0.6.0", "description": "WebAssembly-based libxml2 javascript wrapper", "scripts": { "clean": "rm -rf lib out", "init": "mkdir -p out && mkdir -p lib", "config": "cd out && emconfigure ../libxml2/autogen.sh --without-python --without-http --without-sax1 --without-modules --without-html --without-threads --without-zlib --without-lzma --disable-shared --enable-static", "compile": "cd out && emmake make", "bind": "cd out && emcc -L.libs -lxml2 -o libxml2raw.mjs --no-entry -s EXPORT_ES6 -s ALLOW_MEMORY_GROWTH -s ALLOW_TABLE_GROWTH -s EXPORTED_RUNTIME_METHODS=@../binding/exported-runtime-functions.txt -s EXPORTED_FUNCTIONS=@../binding/exported-functions.txt -s SINGLE_FILE", "dist": "cp out/libxml2raw.* src/libxml2raw.* lib", "libxml": "npm run init && npm run config && npm run compile", "link": "npm run bind && npm run dist", "wasm": "npm run clean && npm run libxml && npm run link", "unit": "mocha --v8-expose-gc", "integ": "cross-env TS_NODE_PROJECT=tsconfig.integ.json mocha --v8-expose-gc test/crossplatform", "test": "npm run cov && npm run lint", "cov": "c8 npm run unit", "tsc": "tsc -p tsconfig.prod.json --declaration", "build": "npm run wasm && npm run tsc", "lint": "eslint 'src/**' 'test/**/*.mts'", "docwatch": "typedoc --watch", "doc": "typedoc", "watch": "npm run tsc -- --watch" }, "repository": { "type": "git", "url": "git@github.com:jameslan/libxml2-wasm.git" }, "main": "lib/index.mjs", "homepage": "https://jameslan.github.io/libxml2-wasm/", "author": "James Lan", "license": "MIT", "files": [ "lib/*" ], "devDependencies": { "@types/chai": "^5.2.1", "@types/chai-sorted": "^0.2.3", "@types/mocha": "^10.0.10", "@types/node": "^22.13.13", "@types/sinon": "^17.0.4", "@types/sinon-chai": "^4.0.0", "c8": "^10.1.3", "chai": "^5.2.0", "chai-sorted": "^0.2.0", "cross-env": "^7.0.3", "eslint": "^8.57.1", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-typescript": "^18.0.0", "eslint-import-resolver-typescript": "^4.2.3", "eslint-plugin-chai-friendly": "^1.1.0", "eslint-plugin-import": "^2.32.0", "markdown-it-footnote": "^4.0.0", "mocha": "^11.6.0", "sinon": "^21.0.0", "sinon-chai": "^4.0.0", "ts-node": "^10.9.2", "ts-paths-esm-loader": "^1.4.3", "typedoc": "^0.28.9", "typedoc-plugin-version-select": "^2.0.0", "typescript": "^5.9.2" }, "keywords": [ "xml", "xml parser", "libxml", "WebAssembly" ], "engines": { "node": ">=18" } }