{"library":"express-minify-html-2","type":"library","category":null,"description":"express-minify-html-2 is an Express.js middleware designed to automatically minify HTML responses rendered by an Express application, optimizing them for size. It functions as a maintained fork of the original `express-minify-html` package, explicitly created to keep the project alive and address issues like using outdated dependencies, most notably by integrating `html-minifier-terser` for robust and secure HTML minification. The current stable version is `2.0.0`. While it doesn't adhere to a strict release cadence, updates are released reactively for dependency upgrades, security fixes, and minor feature enhancements. The middleware either replaces Express's default `res.render` method with a minified version or provides an alternative `res.renderMin` function when the `override` option is set to `false`. This ensures that HTML served to clients is optimized for load times and bandwidth efficiency through configurable minification options passed directly to the underlying `html-minifier-terser` library.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","express","html","minifier","middleware","minify"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-minify-html-2","imports":["import minifyHTML from 'express-minify-html-2'","const minifyHTML = require('express-minify-html-2')","import type { Options } from 'express-minify-html-2'"]},{"cmd":"yarn add express-minify-html-2","imports":[]},{"cmd":"pnpm add express-minify-html-2","imports":[]}],"homepage":null,"github":"https://github.com/meszaros-lajos-gyorgy/express-minify-html-2","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-minify-html-2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-minify-html-2/compatibility"}}