Skip to content
A little node module that minimize CSS Files
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is a node module that minimize CSS files (cssmin).
It uses most of YUICompressor rules to minify CSS files (ie Not all rules are implemented)


The module export the cssmin function, you can use it with : 

	var cssmin = require('cssmin').cssmin;
The function take two arguments :
	input -> the CSS content you want to minimize
	linecreak -> adds a return carriage after each block for debug purpose or readability...
Example :

var puts = require('sys').puts,
	fs = require('fs'),
	cssmin = require('./cssmin').cssmin;

var css = fs.readFileSync("/Any/Random/CSS/File.css", encoding='utf8');

var min = cssmin(css);


Something went wrong with that request. Please try again.