minimum

Compress html/css/js into a single html file.

npm install minimum
1 downloads in the last day
11 downloads in the last week
21 downloads in the last month

minimum

Minify html/js/css into a single document.

Installation

npm install -g minimum

Usage

Options

var opts = {}

opts.path = 'path/to/file.html' // required
opts.output = 'path/to/min.html'  // optional
opts.debug = false // optional
opts.watch = false // optional

Command line

minimum [opts] path
-h, --help           output usage information
-d, --debug          show debug logs
-o, --output [path]  path to output minified html
-w, --watch          watch for changes

Module

var min
  , minimum = require('minimum')
  , opts = { path: 'file.html' }

min = minimum(opts)
min.on('save', function(original, saved) {
  console.log('File saved to: '+saved)
})
npm loves you