fulljsmin

Javascript & CSS minifier from Pretty-Diff

fulljsmin

Node package for fulljsmin.js - the Javascript & CSS minifier from Pretty-Diff

https://github.com/austincheney/Pretty-Diff/blob/master/lib/fulljsmin.js

To install the module:

$ npm install fulljsmin

To install the shell command:

$ npm install -g fulljsmin
var minifier = require('fulljsmin')
  , minCss   = minifier.jsmin({
                  type: 'css'
                , source: "body: {\n  margin: 0px;\n  padding: 0px;\n}\n"
               })
;
console.log(minCss);

If you installed the shell command:

$ fulljsmin.js <filename>
  • Async
  • Stream buffers