var scss = require('kerio-sass-js');
var text = '/* SCSS */ h1 { color: red; }';
scss.process(text);
console.log(scss.definitions); // use before .toCss()
console.log(scss.toCss()); // .definitions are empty after calling this
See live demo here.
npm test