New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

minify-html-wasm

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minify-html-wasm - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

index_bg.wasm

12

package.json

@@ -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,
})
);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc