CSS-aware HTML minifier that aggressively removes whitespace while preserving layout by analyzing each element's CSS properties. It minifies inline JavaScript and CSS using UglifyJS and clean-css. Version 0.0.15 has no stable release cadence; the project appears abandoned (last commit in 2014). Key differentiator: layout-safe minification via PhantomJS inspection. Requires PhantomJS to be installed separately.
npm install unreadableNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minifies an HTML page from a URL, using --inspect to verify layout safety, and writes to output file.
Consider using html-minifier-terser with CSS awareness or similar tools.
Install PhantomJS via brew, apt, or download from phantomjs.org.
Always use --inspect when testing layout integrity. Use --config to fine-tune.
Avoid using modern JavaScript in source HTML, or pre-minify scripts externally.
Pin to specific version if used in automated processes.
Install PhantomJS from http://phantomjs.org/download.html and add to PATH.
Run npm install -g unreadable
Use command line: npx unreadable ...
Use require.resolve('unreadable/defaults.json') or copy the file.