html-minifier-terser
JavaScript HTML minifier that also minifies inline CSS and JavaScript, usable from the command line and from Node.js.
terser.org/html-minifier-terser/repositorydocs
html-minifier-terser is a JavaScript HTML minifier. The npm package provides a command line tool and a Node.js function: the command line tool is installed globally with npm install html-minifier-terser -g, and the Node.js package is installed with npm install html-minifier-terser. Besides the markup, the package can minify the CSS and JavaScript inside a page, so it runs in a build step or on a developer’s machine rather than on the live site.
The package describes itself as a fork of html-minifier, the earlier project by kangax. The README lists the options and the command line usage.
Identity
Rendering and deploy
Releases
Adoption
Sources
- 2026-10-28: links, Written in, GitHub stars
api.github.com/repos/terser/html-minifier-terser - 2026-10-28: links
terser.org/html-minifier-terser/ - 2026-10-28: links, Categories, Runs as, Install with
github.com/terser/html-minifier-terser/blob/v7.2.0/README.md - 2026-10-28: Maintainer, Runtime, Minimum runtime, License
github.com/terser/html-minifier-terser/blob/v7.2.0/package.json - 2026-10-28: License model
github.com/terser/html-minifier-terser/blob/v7.2.0/LICENSE - 2026-10-28: First release, Current major version, Last release
api.github.com/repos/terser/html-minifier-terser/releases - 2026-10-28: Contributors
api.github.com/repos/terser/html-minifier-terser/contributors - 2026-10-28: npm downloads a week
api.npmjs.org/downloads/range/2026-09-28:2026-10-04/html-minifier-terser - 2026-10-28: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/html-minifier-terser