0.1.0 • Published 11 years ago

fulljsmin v0.1.0

Weekly downloads
5
License
-
Repository
github
Last release
11 years ago

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