Stream.minify()

Minify html

Usage

Hover over inputs/exits for more info.

var Stream = require('machinepack-stream');


// Minify html

Stream.minify({

stream: '*',

}).execSync();

Inputs

stream

A readable stream

Exits

error

An unexpected error occurred.

errorNotStream

It's not a valid stream

success

OK.