express-html-minifier-terser

JSON →
library 2.0.0 ·javascript
verified Jun 4, 2026

Express middleware that wraps html-minifier-terser to minify HTML responses. Version 2.0.0 requires Node >=18 and Express 4+. It overrides res.render to automatically minify output, or adds res.renderMin for explicit control. Supports exception URLs via strings, regexes, or functions. All html-minifier-terser options are available. Maintained, with a simple API for integrating HTML minification into Express apps. Alternatives include express-minify-html or manual minification in views.