html-minify-stream

JSON →
library 2.0.0 ·javascript
verified Jun 4, 2026

Node.js transform stream for minifying HTML using html-minifier. Version 2.0.0 allows streaming HTML documents and passes options directly to html-minifier. Ideal for build pipelines where HTML content is streamed from files or other streams. Does not buffer entire input, enabling low-memory processing of large HTML files. Note that html-minifier is not a pure stream; the stream collects input and processes it on end, but at least it handles backpressure. Primary differentiator from other minification libraries is its streaming interface for Node.js.