minify-html-wasm
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -7,10 +7,10 @@ { | ||
], | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"files": [ | ||
"minify_html_wasm_bg.wasm", | ||
"minify_html_wasm.js", | ||
"minify_html_wasm.d.ts" | ||
"index_bg.wasm", | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"module": "minify_html_wasm.js", | ||
"types": "minify_html_wasm.d.ts", | ||
"module": "index.js", | ||
"types": "index.d.ts", | ||
"sideEffects": [ | ||
@@ -17,0 +17,0 @@ "./snippets/*" |
@@ -15,2 +15,14 @@ # minify-html-wasm | ||
import init, { minify } from "minify-html-wasm"; | ||
const encoder = new TextEncoder(); | ||
const decoder = new TextDecoder(); | ||
await init("https://cdn.jsdelivr.net/npm/minify-html-wasm/index_bg.wasm"); | ||
const minified = decoder.decode( | ||
minify(encoder.encode("<p> Hello, world! </p>"), { | ||
keep_spaces_between_attributes: true, | ||
keep_comments: true, | ||
}) | ||
); | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
875295
28