Package
html-minifier
Highly configurable, well-tested, JavaScript-based HTML minifier.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 3m
- -9% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 7
- Direct, from package.json
- Last release
- 7 years ago
- v4.0.0
- GitHub stars
- 5k
- 577 forks
- Open issues / PRs
- 86 / 21
- Contributors
- -
- Commits, last 52 weeks
- 3
Downloads
Last week 2026-09-15 to 2026-09-21
3,032,920 downloads last week, 11,518,093 in the last month. The 12-month change of -9% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 080 in total
- Latest version
- 4.0.0, 1 Apr 20197 years ago
- First published
- 5 Aug 2011
- Last push to GitHub
- 26 Mar 2026182 days before the snapshot
- Repository archived
- No
- Open issues
- 86
- Open pull requests
- 21
- Commits, last 52 weeks
- 3
- Dependents on npm
- 2,155
Major versions
- v4 first release 4.0.0, 1 Apr 2019
- v3 first release 3.0.0, 8 Jul 2016
- v2 first release 2.0.0, 19 Apr 2016
- v1 first release 1.0.0, 25 Oct 2015
- v0 first release 0.4.3, 5 Aug 2011
Recent releases
| Version | Published |
|---|---|
| 4.0.0 | 1 Apr 2019 |
| 3.5.21 | 25 Oct 2018 |
| 3.5.20 | 19 Aug 2018 |
| 3.5.19 | 13 Jul 2018 |
| 3.5.18 | 3 Jul 2018 |
| 3.5.17 | 25 Jun 2018 |
| 3.5.16 | 20 May 2018 |
| 3.5.15 | 16 Apr 2018 |
| 3.5.14 | 7 Apr 2018 |
| 3.5.13 | 31 Mar 2018 |
| 3.5.12 | 19 Mar 2018 |
| 3.5.11 | 14 Mar 2018 |
| 3.5.10 | 4 Mar 2018 |
| 3.5.9 | 9 Feb 2018 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=6
- Runtimes
- -
- Unpacked size (npm)
- 95 kB
- Dependencies (7)
heclean-csscommanderrelateurluglify-jscamel-caseparam-case
npm install html-minifier- jsDelivr
https://cdn.jsdelivr.net/npm/html-minifier@4.0.0/ - unpkg
https://unpkg.com/html-minifier@4.0.0/ - esm.sh
https://esm.sh/html-minifier@4.0.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| html-minifier-terser | 15.7m | - | 3 years ago | ESM + CommonJS | - |
| html-minifier-next | 30.6k | - | 3 days ago | ESM only | - |
Indexability: Indexed.