fulljsmin

Javascript & CSS minifier from Pretty-Diff

npm install fulljsmin
1 downloads in the last week
4 downloads in the last month

fulljsmin

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

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

Install

To install the module:

$ npm install fulljsmin

To install the shell command:

$ npm install -g fulljsmin

Synopsis

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

From the command line

If you installed the shell command:

$ fulljsmin.js <filename>

Todo

  • Async
  • Stream buffers
npm loves you