{"library":"html-minifier-browser","type":"library","category":null,"description":"HTMLMinifier is a highly configurable, well-tested JavaScript-based HTML minifier that reduces HTML size by removing unnecessary spaces, comments, and attributes. The current stable version is 4.0.2, with regular updates via npm. It offers extensive options (e.g., collapseWhitespace, removeComments, minifyCSS, minifyJS) for fine-grained control over minification. Unlike alternatives like html-compressor or minimize, it handles inline CSS/JS compression and runs in the browser. Released since 2011, it remains a go-to tool for optimizing HTML for production with a focus on safety and performance.","language":"javascript","status":"active","version":"4.0.2","tags":["javascript","cli","compress","compressor","css","html","htmlmin","min"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install html-minifier-browser","imports":["import { minify } from 'html-minifier'","import htmlMinifier from 'html-minifier'","import type { MinifyOptions } from 'html-minifier'"]},{"cmd":"yarn add html-minifier-browser","imports":[]},{"cmd":"pnpm add html-minifier-browser","imports":[]}],"homepage":"https://kangax.github.io/html-minifier/","github":"https://github.com/kangax/html-minifier","docs":null,"changelog":null,"pypi":null,"npm":"html-minifier-browser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}