{"library":"htmlnano","type":"library","category":null,"description":"Modular HTML minifier built on PostHTML, version 3.2.1 (stable). Released occasionally, with recent versions focusing on TypeScript migration, performance improvements, and edge case fixes. Key differentiators: modular architecture allowing selective enabling/disabling of minification modules, presets (safe, max), and extensive configuration options. Compared to html-minifier-terser or minify-html, htmlnano offers deeper integration with PostHTML ecosystem and supports advanced features like CSS/JS minification via optional peer dependencies (cssnano, terser). Includes CLI tool and TypeScript types.","language":"javascript","status":"active","version":"3.2.1","tags":["javascript","posthtml","posthtml-plugin","html","postproccessor","minifier","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install htmlnano","imports":["import htmlnano from 'htmlnano'","import htmlnano from 'htmlnano'; const result = await htmlnano.process(html, options)","import type { Preset } from 'htmlnano'"]},{"cmd":"yarn add htmlnano","imports":[]},{"cmd":"pnpm add htmlnano","imports":[]}],"homepage":null,"github":"https://github.com/maltsev/htmlnano","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/htmlnano","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}