node-sassy
A sass compiler for node that uses your existing sass gem.
Last updated 12 years ago .
MIT · Original npm · Tarball · package.json
$ npm install node-sassy 
SYNC missed versions from official npm registry.

node-sassy

A sass compiler for node that relies on your installed ruby gem of sass.

Installation

npm install node-sassy

Example

// Simple file example.
sassy.compile(filepath, function(err, css) {
    if(err){
        throw err;
    }
    
    console.log(css);
});

// Multiple files (concatenated)
sassy.compile([filepath1, filepath2, filepath3], function(err, css) {
    if(err){
        throw err;
    }
    
    console.log(css);
});

// Specify where to import from
var opts = {
	includeFrom: path.join(process.cwd(), "style")
};

sassy.compile(filePathWithImport, opts, function(err, css) {
    if(err){
        throw err;
    }
    
    console.log(css);
});

License

MIT License, No Attribution Required, Copyright 2013 Jacob Gable

Current Tags

  • 0.0.1                                ...           latest (12 years ago)

1 Versions

  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE