Socket
Book a DemoInstallSign in
Socket

node-sassy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sassy

A sass compiler for node that uses your existing sass gem.

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

sass

FAQs

Package last updated on 08 Mar 2013

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