minify_html 0.9.2 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -13
- data/lib/linux-ruby2.5 +0 -0
- data/lib/linux-ruby2.6 +0 -0
- data/lib/linux-ruby2.7 +0 -0
- data/lib/macos-ruby2.5 +0 -0
- data/lib/macos-ruby2.6 +0 -0
- data/lib/macos-ruby2.7 +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba06121c80902cb8e29337e348d538ce54a208aaed7e58d3059fac2fde97677
|
4
|
+
data.tar.gz: 53e0cb6630a66c8df55998c6ca06700fb3825771bce71c913a67f85c0ed59044
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 883e4d5961346742600bcdbb812ee06127d6e54957f869f6f7e6636eb2b16a53b5cb5ceec9b4e1b53526b11031969296aed98b01c86822f5f376b400fa079bcc
|
7
|
+
data.tar.gz: 0adac1e97bed6cff4398481f5ad0a7008000e4bd64ecdfe84ff2a1f675a6f55830e9027a4b0053c8234c1f6bbc717c840ed4c99bb32b4384c04fc0a356ac3406
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ View the [changelog](./CHANGELOG.md) to see the latest updates.
|
|
23
23
|
|
24
24
|
Comparison with [html-minifier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize), run on the top web pages. [See the breakdown here.](./bench)
|
25
25
|
|
26
|
-
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.
|
26
|
+
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.10.1/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.10.1/core/average-sizes.png">
|
27
27
|
|
28
28
|
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.
|
29
29
|
|
@@ -36,11 +36,10 @@ Precompiled binaries are available for Linux, macOS, and Windows.
|
|
36
36
|
|
37
37
|
### Get
|
38
38
|
|
39
|
-
[Linux x64](https://wilsonl.in/minify-html/bin/0.
|
40
|
-
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.
|
41
|
-
[macOS x64](https://wilsonl.in/minify-html/bin/0.
|
42
|
-
[
|
43
|
-
[Windows x64](https://wilsonl.in/minify-html/bin/0.9.2-windows-x86_64.exe)
|
39
|
+
[Linux x64](https://wilsonl.in/minify-html/bin/0.10.1-linux-x86_64) |
|
40
|
+
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.10.1-linux-arm64) |
|
41
|
+
[macOS x64](https://wilsonl.in/minify-html/bin/0.10.1-macos-x86_64) |
|
42
|
+
[Windows x64](https://wilsonl.in/minify-html/bin/0.10.1-windows-x86_64.exe)
|
44
43
|
|
45
44
|
### Use
|
46
45
|
|
@@ -65,7 +64,7 @@ minify-html --keep-closing-tags --minify-css /path/to/**/*.html
|
|
65
64
|
|
66
65
|
```toml
|
67
66
|
[dependencies]
|
68
|
-
minify-html = "0.
|
67
|
+
minify-html = "0.10.1"
|
69
68
|
```
|
70
69
|
|
71
70
|
### Use
|
@@ -77,14 +76,14 @@ Check out the [docs](https://docs.rs/minify-html) for API and usage examples.
|
|
77
76
|
<details>
|
78
77
|
<summary><img width="24" src="https://wilsonl.in/minify-html/icon/deno.png"> <strong>Deno</strong></summary>
|
79
78
|
|
80
|
-
- Package: https://wilsonl.in/minify-html/deno/0.
|
79
|
+
- Package: https://wilsonl.in/minify-html/deno/0.10.1/index.js
|
81
80
|
- Binding: [WASM](https://webassembly.org/)
|
82
81
|
- Platforms: All
|
83
82
|
|
84
83
|
### Use
|
85
84
|
|
86
85
|
```ts
|
87
|
-
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.
|
86
|
+
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.10.1/index.js";
|
88
87
|
|
89
88
|
const encoder = new TextEncoder();
|
90
89
|
const decoder = new TextDecoder();
|
@@ -103,7 +102,7 @@ All [`Cfg` fields](https://docs.rs/minify-html/latest/minify_html/struct.Cfg.htm
|
|
103
102
|
|
104
103
|
- Package: [@minify-html/node](https://www.npmjs.com/package/@minify-html/node)
|
105
104
|
- Binding: [Neon](https://github.com/neon-bindings/neon)
|
106
|
-
- Platforms: Linux (ARM64 and x64), macOS (
|
105
|
+
- Platforms: Linux (ARM64 and x64), macOS (x64), Windows (x64); Node.js 8.6.0 and higher
|
107
106
|
|
108
107
|
### Get
|
109
108
|
|
@@ -124,10 +123,11 @@ yarn add @minify-html/node
|
|
124
123
|
TypeScript definitions are available.
|
125
124
|
|
126
125
|
```ts
|
126
|
+
import { Buffer } from "node:buffer";
|
127
127
|
import * as minifyHtml from "@minify-html/node";
|
128
128
|
// Or `const minifyHtml = require("@minify-html/node")` if not using TS/ESM.
|
129
129
|
|
130
|
-
const minified = minifyHtml.minify("<p> Hello, world! </p>", { keep_spaces_between_attributes: true, keep_comments: true });
|
130
|
+
const minified = minifyHtml.minify(Buffer.from("<p> Hello, world! </p>"), { keep_spaces_between_attributes: true, keep_comments: true });
|
131
131
|
```
|
132
132
|
|
133
133
|
All [`Cfg` fields](https://docs.rs/minify-html/latest/minify_html/struct.Cfg.html) are available as snake_case properties on the object provided as the second argument; if any are not set, they default to `false`.
|
@@ -149,7 +149,7 @@ Add as a Maven dependency:
|
|
149
149
|
<dependency>
|
150
150
|
<groupId>in.wilsonl.minifyhtml</groupId>
|
151
151
|
<artifactId>minify-html</artifactId>
|
152
|
-
<version>0.
|
152
|
+
<version>0.10.1</version>
|
153
153
|
</dependency>
|
154
154
|
```
|
155
155
|
|
@@ -176,7 +176,7 @@ All [`Cfg` fields](https://docs.rs/minify-html/latest/minify_html/struct.Cfg.htm
|
|
176
176
|
|
177
177
|
- Package: [minify-html](https://pypi.org/project/minify-html)
|
178
178
|
- Binding: [PyO3](https://github.com/PyO3/pyo3)
|
179
|
-
- Platforms: Linux (ARM64 and x64), macOS (
|
179
|
+
- Platforms: Linux (ARM64 and x64), macOS (x64), Windows (x64); Python 3.8 to 3.10
|
180
180
|
|
181
181
|
### Get
|
182
182
|
|
data/lib/linux-ruby2.5
CHANGED
Binary file
|
data/lib/linux-ruby2.6
CHANGED
Binary file
|
data/lib/linux-ruby2.7
CHANGED
Binary file
|
data/lib/macos-ruby2.5
CHANGED
Binary file
|
data/lib/macos-ruby2.6
CHANGED
Binary file
|
data/lib/macos-ruby2.7
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minify_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilson Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fiddle
|