node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป


Node CSS compressor

This is simply a copy of the js port of YUI Compressor cssmin wraped as a node.js module.


cd path/to/your/node_modules
git clone git://


var cssmin = require(node-css-compressor).cssmin;
var cssString = ".foobar { color : rgb(123, 123, 123); }";


cssmin.js Author: Stoyan Stefanov - This is a JavaScript port of the CSS minification tool distributed with YUICompressor, itself a port of the cssmin utility by Isaac Schlueter - Permission is hereby granted to use the JavaScript version under the same conditions as the YUICompressor (original YUICompressor note below).

YUI Compressor Author: Julien Lecomte - Copyright (c) 2011 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed by Yahoo! Inc. under the BSD (revised) open source license.