node-sass-wrapper
node-sass-wrapper
is a wrapper around the command line Sass gem.
Install
$ npm install node-sass-wrapper
Example
Call compile
with the path to your Sass stylesheet:
var sass = ; sass;
You can also pass in options:
var sass = ; var options = compass : true style : 'compact'; sass;
API
compile(path, [options], callback)
Compile the Sass file at path
and callback(err, css)
. options
are optional and map directly to their command line equivalents:
compass : false loadPath : null noCache : false precision : 3 require : null style : 'nested'
License
MIT