sax-wasm
Version:
An extremely fast JSX, HTML and XML parser written in Rust compiled to WebAssembly for Node and the Web
79 lines (78 loc) • 2.52 kB
JSON
{
"name": "sax-wasm",
"version": "3.1.3",
"repository": {
"type": "git",
"url": "https://github.com/justinwilaby/sax-wasm.git"
},
"engines": {
"node": ">=18.20.5"
},
"description": "An extremely fast JSX, HTML and XML parser written in Rust compiled to WebAssembly for Node and the Web",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"browser": {
"./lib/esm/index.js": "./lib/esm/index.js"
},
"files": [
"lib/**"
],
"scripts": {
"test": "jest",
"coverage": "nyc -r text -r json-summary jest",
"build:wasm": "cargo build --target wasm32-unknown-unknown --release && npm run wasm-opt",
"wasm-opt": "node scripts/run-wasm-opt.js -O4 target/wasm32-unknown-unknown/release/sax_wasm.wasm -o lib/sax-wasm.wasm --enable-bulk-memory --enable-simd",
"build": "(npm run build:esm && npm run build:cjs & npm run build:types) && npm run build:wasm",
"build:dev": "(npm run build:esm -- --sourceMap && npm run build:cjs -- --sourceMap & npm run build:types) && npm run build:wasm && tsc --emitDeclarationOnly",
"build:esm": "tsc --module esnext --outDir lib/esm --target esnext",
"build:cjs": "tsc --module commonjs --outDir lib/cjs --target esnext",
"build:types": "tsc --outDir lib/types --emitDeclarationOnly --declaration",
"benchmark": "node src/js/__test__/benchmark.mjs",
"lint": "eslint src/js/ **/*.ts",
"layout": "rm -r target && cargo +nightly rustc -- -Zprint-type-sizes"
},
"keywords": [
"XML",
"parser",
"sax",
"web",
"assembly",
"wasm",
"rust",
"html",
"jsx",
"performance"
],
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"browser": "./lib/esm/index.js",
"types": "./lib/types/index.d.ts"
},
"./lib/sax-wasm.wasm": "./lib/sax-wasm.wasm"
},
"types": "./lib/types/index.d.ts",
"author": "Justin Wilaby",
"license": "MIT",
"homepage": "https://github.com/justinwilaby/sax-wasm",
"devDependencies": {
"@types/jest": "30.0.0",
"@types/ltx": "^3.1.0",
"@types/node-expat": "^2.3.5",
"@types/sax": "^1.2.7",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"eslint": "9.33.0",
"jest": "30.0.5",
"ltx": "^3.0.0",
"node-expat": "^2.4.1",
"node-xml": "^1.0.2",
"nyc": "17.1.0",
"sax": "^1.2.4",
"saxes": "^6.0.0",
"ts-jest": "^29.2.5",
"typescript": "5.X",
"wasm-opt": "1.4.0"
}
}