1.0.0 • Published 6 years ago
sassp v1.0.0
Sassp 
Sass with promise support and extras.
Install
npm install sasspUsage
const sass = require("sassp");
(async () => {
const { css } = await sass.render({ file: "index.sass" });
console.log(css.toString());
//=> `body { background-color: white; }`
await sass.renderFile({ file: "index.sass", outFile: "index.css", sourceMap: true });
})();API
render(options, callback?)
options
Type: object
See https://github.com/sass/dart-sass#javascript-api.
callback
Type: function
Optional callback. If not specified, the function will return a promise. See https://github.com/sass/dart-sass#javascript-api.
renderSync(options)
See https://github.com/sass/dart-sass#javascript-api
renderFile(options, callback?)
Same as render but automatically writes output to outFile and source map to sourceMap if specified.
renderFileSync(options, callback?)
Same as renderFile but syncronous.
1.0.0
6 years ago
