minify-html-onepass

Crates.iominify-html-onepass
lib.rsminify-html-onepass
version0.15.0
sourcesrc
created_at2021-08-09 10:45:49.052809
updated_at2023-12-24 09:39:06.583587
descriptionEven faster version of minify-html
homepagehttps://github.com/wilsonzlin/minify-html
repositoryhttps://github.com/wilsonzlin/minify-html.git
max_upload_size
id433637
size77,793
Wilson Lin (wilsonzlin)

documentation

README

minify-html-onepass

An HTML minifier that provides the functionality of minify-html with much more performance, but with stricter parsing and less configurability.

  • Uses the same advanced minification strategy.
  • Minifies in one pass with zero memory allocations.
  • Outputs in place; no copy or buffer required.

Performance

Chart showing speed of HTML minifiers

Usage

The API is different compared to minify-html; refer to per-package documentation for more details.

If you don't see your preferred language here and the main library supports it, raise an issue.

Parsing

In addition to the minify-html rules, the onepass variant has additional requirements:

  • Opening tags must not be omitted.
  • Invalid closing tags are not allowed.
  • The document cannot end unexpectedly.
Commit count: 1125

cargo fmt