Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

compass

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compass

Compass for node.js

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5.4K
decreased by-25.72%
Maintainers
1
Weekly downloads
 
Created
Source

compass

Compass wrapper and middleware for node.js.

Install

Ensure compass is already installed (install compass).

Then just use npm:

npm install compass

Usage

Middelware

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'));

Manually

For now compass only wraps the compile action.

var compass = require('compass');

// compiles in process.cwd()
compass.compile(function(err, stdout, stderr) {
    console.log('done');
});

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

Options

For now compass only offer the cwd option.

If you want to customize stuff, please use a config.rb ([http://compass-style.org/help/tutorials/configuration-reference](configuration reference))

Keywords

FAQs

Package last updated on 14 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc