hyperbuild 0.0.43 → 0.0.44

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13f6bc841f3244550cd7757709fed9405e450fe6446b8a0722548596739b2f7c
4
- data.tar.gz: 676dc872075403abf309021820c2057dd386c71c03e5119aba92e0b17551a837
3
+ metadata.gz: c08a3df4ded7e9f0e90457cbcd2bece9e33ebe8ce47246f0e6a93095a517ea19
4
+ data.tar.gz: 0bb130c76c5ed061cf3610ce73a9a2b0ebab72f12df0d16767330c8d7cc61f63
5
5
  SHA512:
6
- metadata.gz: eba2fe40c60af99d2c032e0d57c9da0cef85e46930cca1664b9a29a333d0c5dd71305079b2eb48e826178832381784eb3419c07eb319ae2fb434c57d5d9a5721
7
- data.tar.gz: 82956e71a245a7788bb08bed7e51f7b288b76841f2e9bd4048b4d71e458331e0dae5841cabecf716ce3337cf7b00c5b1b5698ceb9de2faaf950a9eeac3aed0c3
6
+ metadata.gz: d74715dc36e9201b399401b944eb27348e5a0a88885d6db4f9aa609db048f251496bc0b9acbb5f9dea5978789b15d72504be64febc6905b251af200a1bf037fd
7
+ data.tar.gz: db810d4b7e4290c5f07dfd7c2302ad1396d07d614a1c5fbc153d8e5fc9e273f589e59bc36c3023748693d9e4646864198160bf4e7c1e70571ae84db7a0dc874a
data/README.md CHANGED
@@ -17,19 +17,21 @@ Available as:
17
17
 
18
18
  Speed and effectiveness of Node.js version compared to [html-minfier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize). See [bench](./bench) folder for more details.
19
19
 
20
- <img width="435" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.43/average-speeds.png"> <img width="435" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.43/average-sizes.png">
20
+ <img width="435" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.44/average-speeds.png"> <img width="435" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.44/average-sizes.png">
21
21
 
22
22
  ## Usage
23
23
 
24
24
  ### CLI
25
25
 
26
- Precompiled binaries are available for x86-64 Windows, macOS, and Linux. To compile and install from source, run `cargo install hyperbuild`, which requires [Rust](https://www.rust-lang.org/tools/install).
26
+ Precompiled binaries are available for x86-64 Windows, macOS, and Linux.
27
+
28
+ To compile and install from source, run `cargo install hyperbuild`, which requires [Rust](https://www.rust-lang.org/tools/install).
27
29
 
28
30
  ##### Get
29
31
 
30
- [Windows](https://wilsonl.in/hyperbuild/bin/0.0.43-windows-x86_64.exe) |
31
- [macOS](https://wilsonl.in/hyperbuild/bin/0.0.43-macos-x86_64) |
32
- [Linux](https://wilsonl.in/hyperbuild/bin/0.0.43-linux-x86_64)
32
+ [Windows](https://wilsonl.in/hyperbuild/bin/0.0.44-windows-x86_64.exe) |
33
+ [macOS](https://wilsonl.in/hyperbuild/bin/0.0.44-macos-x86_64) |
34
+ [Linux](https://wilsonl.in/hyperbuild/bin/0.0.44-linux-x86_64)
33
35
 
34
36
  ##### Use
35
37
 
@@ -46,7 +48,7 @@ hyperbuild --src /path/to/src.html --out /path/to/output.min.html
46
48
 
47
49
  ```toml
48
50
  [dependencies]
49
- hyperbuild = "0.0.43"
51
+ hyperbuild = "0.0.44"
50
52
  ```
51
53
 
52
54
  ##### Use
@@ -92,6 +94,14 @@ const hyperbuild = require("hyperbuild");
92
94
  const minified = hyperbuild.minify("<p> Hello, world! </p>");
93
95
  ```
94
96
 
97
+ hyperbuild is also available for TypeScript:
98
+
99
+ ```ts
100
+ import * as hyperbuild from "hyperbuild";
101
+
102
+ const minified = hyperbuild.minify("<p> Hello, world! </p>");
103
+ ```
104
+
95
105
  </details>
96
106
 
97
107
  <details>
@@ -107,7 +117,7 @@ Add as a Maven dependency:
107
117
  <dependency>
108
118
  <groupId>in.wilsonl.hyperbuild</groupId>
109
119
  <artifactId>hyperbuild</artifactId>
110
- <version>0.0.43</version>
120
+ <version>0.0.44</version>
111
121
  </dependency>
112
122
  ```
113
123
 
@@ -383,10 +393,10 @@ Spaces are removed between attributes if possible.
383
393
  Entities are decoded if valid (see relevant parsing section) and their decoded characters as UTF-8 is shorter or equal in length.
384
394
 
385
395
  Numeric entities that do not refer to a valid [Unicode Scalar Value](https://www.unicode.org/glossary/#unicode_scalar_value) are replaced with the [replacement character](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character).
386
-
396
+
387
397
  If an entity is unintentionally formed after decoding, the leading ampersand is encoded, e.g. `&&#97;&#109;&#112;;` becomes `&ampamp;`. This is done as `&amp` is equal to or shorter than all other entity representations of characters part of an entity (`[&#a-zA-Z0-9;]`), and there is no other conflicting entity name that starts with `amp`.
388
398
 
389
- Right chevrons after any decoding in text are encoded to `&GT` if possible or `&GT;` otherwise.
399
+ Right chevrons after any decoding in text are encoded to `&GT` if possible or `&GT;` otherwise.
390
400
 
391
401
  ### Comments
392
402
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.43
4
+ version: 0.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilson Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-31 00:00:00.000000000 Z
11
+ date: 2020-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle