# kangax/html-minifier

Javascript-based HTML compressor/minifier (with Node.js support)

Repository: https://github.com/kangax/html-minifier
Canonical: https://ross.abutalabs.com/products/html-minifier
Homepage: http://kangax.github.io/html-minifier/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-03-26T11:35:43+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 8, longevity 100
- inputs: {"age_days": 6053, "days_push": 160, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5037, forks 577 (observed 2026-08-28T04:09:08.761915+00:00)

## What it is
A highly configurable, well-tested JavaScript-based HTML minifier with Node.js and CLI support, capable of also minifying inline CSS and JavaScript. It is now deprecated and unmaintained; users should switch to HTML Minifier Next.

## Use cases
- minify html files for production
- compress html in a node build pipeline
- reduce page weight by stripping comments and whitespace
- minify inline css and js inside html
- run html minification from the command line

## When to choose
- you need a battle-tested, highly configurable HTML minifier for Node.js or CLI
- you want to minify embedded CSS and JS along with HTML
- you're maintaining a legacy build pipeline already using html-minifier

## When to avoid
- starting a new project - use HTML Minifier Next instead
- you need security fixes or ongoing maintenance
- you need minification of non-HTML assets only

## Facets
- artifact type: library
- maturity: abandoned
- function: parser, compression, cli, developer-tools
- domain: web-development, frontend, developer-tools, performance
- platform: cli, cross-platform
- tags: html-minifier, minification, deprecated, build-pipeline, nodejs

## Member repositories
- kangax/html-minifier (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:08.761915+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:17:25.594896+00:00, confidence not recorded.
  - readme: https://github.com/kangax/html-minifier (fetched 2026-08-28T04:09:08.761915+00:00, sha 8232814bd58d)
  - homepage: http://kangax.github.io/html-minifier/ (fetched 2026-08-29T08:58:12.391895+00:00, sha afa58d7718ae)
  - registry_npm: https://registry.npmjs.org/html-minifier (fetched 2026-08-29T08:58:12.400912+00:00, sha 67b16c24c7a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
