Abridge
npm install abridge
Abridge is a streaming compiler for CSS & JavaScript. It is a superset of ycssmin and uglify-js, with a streamable interface on top.
Usage
var abridge = ;/* abridge.{Minifier, createStream, minify} */
Piping output
Pipe #minify output to any writable stream.
abridge;
You may use either a String or an instance of fs.ReadStream as a first argument.
var inputStream = ;abridge;
Using callback
Throw in a callback if you desire.
abridge;
minify is createStream
abridge;
Minify multiple files at once
abridge;
Serve minified scripts and styles
Abridge can be integrated into a web server for quickly minifying scripts & styles.
var http = ;var server = http;server;
For a complete file server solution that uses Abridge minification as well as automatic gzipping, see Lactate
License
MIT