{
    "name": "libxml2-wasm",
    "version": "0.7.1",
    "description": "WebAssembly-based libxml2 javascript wrapper",
    "scripts": {
        "bind": "cd out && emcc @../binding/emcc.txt",
        "build": "npm run wasm && npm run tsc",
        "build:debug": "EMCC_CFLAGS=\"-g -O0\" npm run build",
        "clean": "rm -rf lib out .tsbuildinfo",
        "compile": "cd out && emmake make -j4",
        "config": "cd out && emconfigure ../libxml2/autogen.sh --with-winpath --without-sax1 --without-modules --without-html --without-threads --without-catalog --without-debug --disable-shared --enable-static CFLAGS='-O2'",
        "cov": "c8 npm run unit",
        "dist": "cp src/libxml2raw.* lib && sed 's/import\\((\"\\(node:\\)\\{0,1\\}module\")\\)/((m)=>import(m))\\1/' out/libxml2raw.mjs > lib/libxml2raw.mjs # see issue #140",
        "doc": "typedoc",
        "docwatch": "typedoc --watch",
        "init": "mkdir -p out && mkdir -p lib",
        "integ:backend": "cross-env TS_NODE_PROJECT=tsconfig.integ.json mocha --v8-expose-gc test/crossplatform test/backend",
        "libxml": "npm run init && npm run config && npm run compile",
        "link": "npm run bind && npm run dist",
        "lint": "eslint 'src/**' 'test/**/*.mts'",
        "test": "npm run cov && npm run lint",
        "tsc": "tsc -p tsconfig.prod.json --declaration",
        "unit": "mocha --v8-expose-gc",
        "wasm": "npm run clean && npm run libxml && npm run link",
        "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.10",
        "typedoc-plugin-version-select": "^2.0.0",
        "typescript": "^5.9.2"
    },
    "keywords": [
        "xml",
        "xml parser",
        "libxml",
        "WebAssembly"
    ],
    "engines": {
        "node": ">=18"
    }
}
