express-html-minify

JSON →
library 1.0.4 ·javascript
verified Jun 4, 2026

An Express.js middleware that automatically minifies HTML responses using html-minifier. This package intercepts HTML responses and reduces file size by removing whitespace, comments, and other unnecessary characters. Version 1.0.4 is the latest stable release. It has low release cadence and minimal dependencies, but its approach (intercepting res.end) can conflict with other middleware or streaming responses. Unlike other minifiers, it does not require manual wrapping of res.send or res.render.