Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CSS stream compressor
JavaScript CSS
Tag: v1.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
examples
lib
spec
tests
.npmignore
LICENSE
Makefile
README.md
package.json

README.md

ncss

This node.js module is a streaming compressor for CSS. Unlike other CSS minifiers it works on a stream and is optimized for speed.

installation

npm install ncss

usage

var ncss = require('ncss');
var min = ncss('.selector { background: black; }');

or

ncss < input_file > output_file

Using ncss with Connect or Express

ncss also comes with middleware for connect. See examples for more advanced usage.

var pub = __dirname + '/public';
connect.createServer(ncss.middleware(pub), connect.static(pub)).listen(3000);
Something went wrong with that request. Please try again.