html-minifier
JSON →A highly configurable, well-tested JavaScript-based HTML minifier with lint-like capabilities. Current stable version is 0.6.9-patch1 (released in 2016). It reduces HTML size by removing comments, whitespace, redundant attributes, etc. Compared to alternatives like Will Peavy's minifier or htmlcompressor.com, it consistently achieves smaller output sizes across multiple real-world websites. The tool offers a comprehensive set of options and can be used via CLI or programmatic API. It supports Node.js >=0.10.0 and is available on npm.
Resources
packagehtml_min ↗