Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 29 lines (16 sloc) 0.894 kB
796fe7b @wasche update badges
authored
1 # ncss [![NPM version](https://badge.fury.io/js/ncss.png)](http://badge.fury.io/js/ncss) [![Still Maintained](http://stillmaintained.com/wasche/ncss.png)](http://stillmaintained.com/wasche/ncss)
69a2d2d @wasche update badges
authored
2
7db9c70 @wasche initial commit
authored
3 This node.js module is a streaming compressor for CSS. Unlike other CSS minifiers
4 it works on a stream and is optimized for speed.
5
69a2d2d @wasche update badges
authored
6 ## installation
56374b1 @wasche add still maintained link
authored
7
ee1cfb3 @wasche add executable, fixup npm package
authored
8 npm install ncss
9
69a2d2d @wasche update badges
authored
10 ## usage
11
ee1cfb3 @wasche add executable, fixup npm package
authored
12 var ncss = require('ncss');
13 var min = ncss('.selector { background: black; }');
14
15 or
16
7db9c70 @wasche initial commit
authored
17 ncss < input_file > output_file
f5616fc @wasche bump version number and update readme with connect example
authored
18
69a2d2d @wasche update badges
authored
19 ## Using ncss with Connect or Express
20
f5616fc @wasche bump version number and update readme with connect example
authored
21 ncss also comes with middleware for connect. See examples for more advanced usage.
22
23 var pub = __dirname + '/public';
24 connect.createServer(ncss.middleware(pub), connect.static(pub)).listen(3000);
db49f85 @wasche add new options to readme
authored
25
26 ## Matching Output of Y!UI Compressor
27
71c824d @wasche update badges
authored
28 For Y!UI Compressor 2.4.2, use: ```--keep-trailing-semicolons --no-collapse-zeroes --no-collapse-none```
Something went wrong with that request. Please try again.