Skip to main content

Even faster version of minify-html

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minify_html_onepass-0.10.3.tar.gz (123.3 kB view hashes)

Uploaded Source

Built Distributions

minify_html_onepass-0.10.3-cp311-none-win_amd64.whl (522.8 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

minify_html_onepass-0.10.3-cp311-cp311-manylinux_2_28_aarch64.whl (605.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

minify_html_onepass-0.10.3-cp311-cp311-manylinux_2_27_x86_64.whl (669.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.27+ x86-64

minify_html_onepass-0.10.3-cp311-cp311-macosx_10_7_x86_64.whl (559.7 kB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

minify_html_onepass-0.10.3-cp310-none-win_amd64.whl (522.8 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

minify_html_onepass-0.10.3-cp310-cp310-manylinux_2_28_aarch64.whl (605.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

minify_html_onepass-0.10.3-cp310-cp310-manylinux_2_27_x86_64.whl (669.9 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.27+ x86-64

minify_html_onepass-0.10.3-cp310-cp310-macosx_10_7_x86_64.whl (559.7 kB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

minify_html_onepass-0.10.3-cp39-none-win_amd64.whl (522.8 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

minify_html_onepass-0.10.3-cp39-cp39-manylinux_2_28_aarch64.whl (605.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

minify_html_onepass-0.10.3-cp39-cp39-manylinux_2_27_x86_64.whl (669.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.27+ x86-64

minify_html_onepass-0.10.3-cp39-cp39-macosx_10_7_x86_64.whl (559.7 kB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

minify_html_onepass-0.10.3-cp38-none-win_amd64.whl (522.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

minify_html_onepass-0.10.3-cp38-cp38-manylinux_2_28_aarch64.whl (605.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.28+ ARM64

minify_html_onepass-0.10.3-cp38-cp38-manylinux_2_27_x86_64.whl (670.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.27+ x86-64

minify_html_onepass-0.10.3-cp38-cp38-macosx_10_7_x86_64.whl (559.8 kB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page