Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A little node module that minimize CSS Files
JavaScript
Tree: 71403042f2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README
cssmin.js
package.json

README

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
	linebreak -> (true, false) 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);

puts(min);
	

Something went wrong with that request. Please try again.