html-minifier 4.0.0
Highly configurable, well-tested, JavaScript-based HTML minifier.
html-minifier@4.0.0 was published on 2019-04-01. Its manifest declares 7 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=6.
All html-minifier versions · Permanent reference to 4.0.0 · Latest release
Package specifications
| Version | 4.0.0 |
|---|---|
| License declaration | MIT |
| Published | 2019-04-01T18:49:19.719Z |
| Node.js requirement | >=6 |
| Type declarations | Not declared |
| Runtime dependency count | 7 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 94.55 KiB |
| Published file count | 9 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | src/htmlminifier.js |
| Side effects declaration | Not declared |
| Direct advisories | 1 |
| Resolved graph dependencies | 11 |
| Repository stars | 5029 |
| Repository forks | 576 |
Install html-minifier 4.0.0
npm install html-minifier@4.0.0 pnpm add html-minifier@4.0.0 yarn add html-minifier@4.0.0
Runtime dependencies
- he ^1.2.0
- clean-css ^4.2.1
- commander ^2.19.0
- relateurl ^0.2.7
- uglify-js ^3.5.1
- camel-case ^3.0.0
- param-case ^2.1.1
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- camel-case@3.0.0 — direct
- clean-css@4.2.4 — direct
- commander@2.20.3 — direct
- he@1.2.0 — direct
- lower-case@1.1.4 — indirect
- no-case@2.3.2 — indirect
- param-case@2.1.1 — direct
- relateurl@0.2.7 — direct
- source-map@0.6.1 — indirect
- uglify-js@3.19.3 — direct
- upper-case@1.1.3 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Known direct advisories
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
|---|---|
| Code-Review | 3/10 — Found 8/24 approved changesets -- score normalized to 3 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Pinned-Dependencies | 1/10 — dependency not pinned by hash detected -- score normalized to 1 |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Security-Policy | 0/10 — security policy file not detected |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| SAST | 7/10 — SAST tool detected but not run on all commits |
Evidence and freshness
- https://registry.npmjs.org/html-minifier/4.0.0 — retrieved 2026-10-29T08:05:35.120Z
- https://api.deps.dev/v3/systems/npm/packages/html-minifier/versions/4.0.0:dependencies — retrieved 2026-10-29T07:19:30.008Z
- https://api.deps.dev/v3/systems/npm/packages/html-minifier/versions/4.0.0 — retrieved 2026-10-29T07:19:29.994Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Fkangax%2Fhtml-minifier — retrieved 2026-10-29T07:19:30.123Z