-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
69 lines (69 loc) · 1.89 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "sax-wasm",
"version": "2.3.2",
"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/index.js",
"module": "lib/esm/index.js",
"browser": {
"./lib/cjs/index.js": "./lib/esm/index.js"
},
"type": "module",
"files": [
"lib/**"
],
"scripts": {
"test": "jest",
"test:coverage": "npm run test && nyc report --reporter=text-lcov",
"build:wasm": "cargo build --target wasm32-unknown-unknown --release && npm run wasm-opt",
"wasm-opt": "wasm-opt -O4 target/wasm32-unknown-unknown/release/sax_wasm.wasm -o lib/sax-wasm.wasm",
"build": "(npm run build:esm && npm run build:cjs) && 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",
"benchmark": "node src/js/__test__/benchmark.mjs",
"lint": "eslint src/js/ --ext .ts"
},
"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"
},
"./lib/sax-wasm.wasm": "./lib/sax-wasm.wasm"
},
"types": "./lib/index.d.ts",
"author": "Justin Wilaby",
"license": "MIT",
"homepage": "https://github.com/justinwilaby/sax-wasm",
"devDependencies": {
"@types/jest": "^29.5.14",
"eslint": "9.17.0",
"jest": "29.7.0",
"ts-jest": "^29.2.5",
"ltx": "^3.0.0",
"node-xml": "^1.0.2",
"nyc": "17.1.0",
"sax": "^1.2.4",
"typescript": "5.X",
"wasm-opt": "1.4.0"
},
"dependencies": {}
}