FindSoftware

html-minifier-terser

JavaScript HTML minifier that also minifies inline CSS and JavaScript, usable from the command line and from Node.js.

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

Status
Active
Maintainer
Daniel Ruf4
First release
20196

Rendering and deploy

Runs as
Dev only3
Install with
npm3

Releases

Current major version
76
Last release
2023-04-116

Adoption

GitHub stars
4821
npm downloads a week
23,140,3948
Contributors
957
Dependent repositories
1,213,8149
Dependent packages
4639

Why these figures do not compare

Sources

  1. 2026-10-28: links, Written in, GitHub stars
    api.github.com/repos/terser/html-minifier-terser
  2. 2026-10-28: links
    terser.org/html-minifier-terser/
  3. 2026-10-28: links, Categories, Runs as, Install with
    github.com/terser/html-minifier-terser/blob/v7.2.0/README.md
  4. 2026-10-28: Maintainer, Runtime, Minimum runtime, License
    github.com/terser/html-minifier-terser/blob/v7.2.0/package.json
  5. 2026-10-28: License model
    github.com/terser/html-minifier-terser/blob/v7.2.0/LICENSE
  6. 2026-10-28: First release, Current major version, Last release
    api.github.com/repos/terser/html-minifier-terser/releases
  7. 2026-10-28: Contributors
    api.github.com/repos/terser/html-minifier-terser/contributors
  8. 2026-10-28: npm downloads a week
    api.npmjs.org/downloads/range/2026-09-28:2026-10-04/html-minifier-terser
  9. 2026-10-28: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/html-minifier-terser

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON