@worker-tools/parsed-html-rewriter
Version:
A DOM-based implementation of Cloudflare Worker's HTMLRewriter.
73 lines (72 loc) • 2.14 kB
JSON
{
"name": "@worker-tools/parsed-html-rewriter",
"version": "0.1.11",
"description": "A DOM-based implementation of Cloudflare Worker's HTMLRewriter.",
"type": "module",
"main": "cjs/index.cjs",
"module": "index.js",
"types": "index.d.ts",
"exports": {
".": {
"import": "./index.js",
"require": "./cjs/index.cjs"
},
"./polyfill": {
"import": "./polyfill.js",
"require": "./cjs/polyfill.cjs"
}
},
"files": [
"src",
"cjs",
"dist",
"*.js*",
"*.d.ts*"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "shx rm -rf cjs dist *.d.ts *.js *.js.map *.d.ts.map *.tgz",
"test": "npm run build:mjs && node test/test.js",
"build": "npm run build:mjs & npm run build:cjs & npm run build:dist & wait",
"build:mjs": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json && npm run sed && npm run mv",
"build:dist": "esbuild src/index.ts --bundle --format=esm --target=es2020 --outfile=dist/index.js --tsconfig=tsconfig.json",
"sed": "shx sed -i 's/\\.(.*)\\.js/\\.$1\\.cjs/g' cjs/*.js > /dev/null ",
"mv": "for f in cjs/*.js; do shx mv \"$f\" \"${f%.js}.cjs\"; done",
"prepack": "npm run clean && npm run build"
},
"author": "Florian Klampfer <mail@qwtel.com> (https://qwtel.com/)",
"license": "MIT",
"dependencies": {
"@cloudflare/workers-types": "^2.2.2",
"linkedom": "^0.13.2",
"tslib": "^2.3.1",
"whatwg-stream-to-async-iter": "^0.4.1"
},
"devDependencies": {
"esbuild": "^0.14.20",
"node-fetch-polyfill": "^2.0.6",
"node-web-streams": "^0.2.2",
"shx": "^0.3.4",
"typed-array-utils": "^0.2.2",
"typescript": "^4.5.5",
"web-streams-polyfill": "^3.2.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/worker-tools/parsed-html-rewriter.git"
},
"bugs": {
"url": "https://github.com/worker-tools/parsed-html-rewriter/issues"
},
"homepage": "https://github.com/worker-tools/parsed-html-rewriter#readme",
"keywords": [
"polyfill",
"html",
"dom",
"cloudflare-workers",
"html-rewriter"
]
}