lib/json2sass.js
function writeFile(input, output, type) {
    var json    = readFile(input),
        content = getContent(json, type);

    fs.writeFile(output, content, function (err) {
        if (err) {
            throw err;
        }

        console.log('The file "' + output + '" was written successfully!');
    });
}
function writeFile(input, output, type) {
    var json    = readFile(input),
        content = getContent(json, type);

    fs.writeFile(output, content, function (err) {
        if (err) {
            throw err;
        }

        console.log('The file "' + output + '" was written successfully!');
    });
}
function writeFile ( input , output , type ) { var json = readFile ( input ) , content = getContent ( json , type ) ; fs . writeFile ( output , content , function ( err ) { if ( err ) { throw err ; } console . log ( 'The file "' + output + '" was written successfully!' ) ; } ) ; }
write json content to file
@param {string} input  [input file]
@param {string} output [output file]
@param {string} type   [file type: sass || scss]
write json content to file