Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@minify-html/wasm

Package Overview
Dependencies
Maintainers
1
Versions
29
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.13.3
to
0.14.0
+1
-1
package.json

@@ -6,3 +6,3 @@ {

],
"version": "0.13.3",
"version": "0.14.0",
"files": [

@@ -9,0 +9,0 @@ "index_bg.wasm",

@@ -26,3 +26,3 @@ <h1>

<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.13.3/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.13.3/core/average-sizes.png">
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.14.0/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.14.0/core/average-sizes.png">

@@ -65,3 +65,3 @@ The [onepass](https://github.com/wilsonzlin/minify-html/tree/master/rust/onepass) variant is even more optimised for speed. See its [README](https://github.com/wilsonzlin/minify-html/tree/master/rust/onepass) for more details.

[dependencies]
minify-html = "0.13.3"
minify-html = "0.14.0"
```

@@ -78,3 +78,3 @@

- Package: https://wilsonl.in/minify-html/deno/0.13.3/index.js
- Package: https://wilsonl.in/minify-html/deno/0.14.0/index.js
- Binding: [WASM](https://webassembly.org/)

@@ -86,3 +86,3 @@ - Platforms: All

```ts
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.13.3/index.js";
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.14.0/index.js";

@@ -153,3 +153,3 @@ const encoder = new TextEncoder();

<artifactId>minify-html</artifactId>
<version>0.13.3</version>
<version>0.14.0</version>
</dependency>

@@ -248,2 +248,10 @@ ```

## Templating syntax
minify-html can parse and preserve `{{`/`{%`/`{#` and `<%` syntax in the source code, which allows minification of many HTML templates written for most engines like Pebble, Mustache, Django, Go, Jinja, Twix, Nunjucks, Handlebars, Sailfish, JSP, EJS, and ERB. Look for the `preserve_*_template_syntax` Cfg options.
PHP blocks (`<?php` or `<?=`) also happen to be processing instructions, which are preserved by default.
Note that in all of these syntax, the parsing is "dumb": it will simply look for the next subsequence of characters that match the closing delimiter. This may cause issues if nesting or string literals appear inside these blocks, but this should be rare.
## Minification

@@ -250,0 +258,0 @@

Sorry, the diff of this file is not supported yet