node-sassy

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i node-sassy

Weekly Downloads

8

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jgable