# Install html-minifier with npm

Highly configurable, well-tested, JavaScript-based HTML minifier. Version 4.0.0 via npm; verified 2019-04-01.

## Install

```sh
sudo av install npm:html-minifier
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g html-minifier
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:html-minifier
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/html-minifier>
- **Version:** 4.0.0
- **Source summary:** Highly configurable, well-tested, JavaScript-based HTML minifier.
- **Homepage:** <https://kangax.github.io/html-minifier/>
- **Repository:** <https://github.com/kangax/html-minifier>
- **Upstream docs:** <https://kangax.github.io/html-minifier/>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/html-minifier/-/html-minifier-4.0.0.tgz>
- **Issue tracker:** <https://github.com/kangax/html-minifier/issues>
- **Published:** 2019-04-01T18:49:19.719Z
- **Last updated:** 2019-04-01T18:49:19.719Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- html-minifier (cli)
- html-minifier (alias)

## Dependencies

- camel-case
- clean-css
- commander
- he
- param-case
- relateurl
- uglify-js

## Build dependencies

- grunt
- grunt-browserify
- grunt-contrib-uglify
- grunt-eslint
- phantomjs-prebuilt
- qunit

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.0.0
- Package-manager updated: 2019-04-01
- Local data: ok
- Upstream repository: https://github.com/kangax/html-minifier
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for html-minifier. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.0.0
- **Version Count:** 80
- **Maintainers:** alexlamsl, kangax, mathias
- **Author:** Juriy "kangax" Zaytsev
- **Publisher:** alexlamsl
- **Engines:** Node: >=6
- **Integrity:** sha512-aoGxanpFPLg7MkIl/DDFYtb0iWz7jMFGqFhvEDZga6/4QTjneiD8I/NXL1x5aaoCp7FSIT6h/OhykDdPsbtMig==
- **Shasum:** cca9aad8bce1175e02e17a8c33e46d8988889f56
- **Unpacked Size:** 96,816
- **File Count:** 0
- **Created At:** 2011-08-05T22:37:09.311Z
- **Latest Published At:** 2019-04-01T18:49:19.719Z
- **Modified At:** 2023-09-10T02:44:54.330Z

## Other Package-Manager Records

- Nix - html-minifier: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/html-minifier/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [html-minifier-terser](https://www.automicvault.com/pkg/npm/html-minifier-terser/) - Package names and metadata indicate a similar tool family. Shared terms: based, camel, camel-case, case, clean.
- [html-minifier-next](https://www.automicvault.com/pkg/npm/html-minifier-next/) - Both packages touch the same language runtime or ecosystem. Shared terms: commander, compress, compressor, configurable, css.
- [node-minify](https://www.automicvault.com/pkg/npm/node-minify/) - Both packages touch the same language runtime or ecosystem. Shared terms: based, clean, clean-css, commander, compressor.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
