html-to-json-rs
Version:
Package for converting HTML to JSON and JSON to HTML using Rust and WebAssembly.
44 lines (43 loc) • 1.37 kB
JSON
{
"name": "html-to-json-rs",
"version": "0.1.8",
"description": "Package for converting HTML to JSON and JSON to HTML using Rust and WebAssembly.",
"main": "./index.js",
"scripts": {
"build": "docker-compose exec app bash -lc 'set -e; export PATH=/usr/local/cargo/bin:$PATH; /usr/local/cargo/bin/wasm-pack build --target web --release; mkdir -p ./lib; cp ./pkg/* ./lib/; cp ./js.js ./lib/; WASM_FILE=\"$(ls ./lib/*_bg.wasm | head -n1)\"; if [ -n \"$WASM_FILE\" ]; then if command -v wasm-opt >/dev/null; then wasm-opt -Oz -o \"$WASM_FILE\" \"$WASM_FILE\" || true; fi; if command -v wasm-strip >/dev/null; then wasm-strip \"$WASM_FILE\" || true; fi; fi'",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
},
"repository": {
"type": "git",
"url": "git+https://gitlab.com/ildar7sins/htmltojson.git"
},
"author": "",
"type": "module",
"license": "MIT",
"bugs": {
"url": "https://gitlab.com/ildar7sins/htmltojson/issues"
},
"homepage": "https://gitlab.com/ildar7sins/htmltojson#readme",
"keywords": [
"html",
"json",
"json2html",
"html2json",
"rust",
"wasm",
"webassembly"
],
"files": [
"lib/*",
"index.js",
"README.md",
"LICENSE",
"html-to-json-rs-*.tgz"
],
"devDependencies": {
"jest": "^30.2.0"
},
"engines": {
"node": ">=10.0.0"
}
}