Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including compass with all npm packages installed. Try it out:

var compass = require("compass")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

compass v0.1.1

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(err, stdout, stderr) {

// compiles in the given directory
compass.compile({ cwd: __dirname + 'public' }, function(err, stdout, stderr) {


For now compass only offer the cwd option.

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


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free