node package manager


Compass for node.js


Compass wrapper and middleware for node.js.

Ensure compass is already installed (install compass).

Then just use npm:

npm install compass

Ensure compass comes before a static middleware. compass generates your css files but does not serve them. You need a static middleware for that.

var compass = require('compass'),
    express = require('express')();
app = express();
app.use(compass({ cwd: __dirname + 'public' }));
app.use(express.static(__dirname + 'public'));

For now compass only wraps the compile action.

var compass = require('compass');
// compiles in process.cwd() 
compass.compile(function(errstdoutstderr) {
// compiles in the given directory 
compass.compile({ cwd: __dirname + 'public' }, function(errstdoutstderr) {

For now compass only offer the cwd option.

If you want to customize stuff, please use a config.rb ([](configuration reference))