A simple command-line HTML minifier from CleanUptheWeb. Current stable version is 1.2.4. It can be used both as a CLI tool and as a Node.js module via require(). The CLI works on a directory basis, with input and output directory arguments. The library is minimal and provides a single min() method that accepts a string of HTML and returns minified output. It is designed for simple use cases where full-featured minifiers are overkill, but lacks advanced features like source maps or streaming.
npm install cutw-minimalNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example shows how to import the package using CommonJS require, create a new instance, and minify an HTML string.
Use CommonJS require() instead of ES import syntax.
Consider using a more robust CLI tool like html-minifier. For programmatic use, the API is fine.
Do not pass options to the constructor; they are not supported.
Always provide a non-null string to min()
Change to const Minifier = require('cutw-minimal');Create an instance first: const m = new Minifier(); then m.min(html)
Install with npm install cutw-minimal
No dependency data recorded yet.