code: 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!');
      });
  }
docs: write json content to file
  @param {string} input  [input file]
  @param {string} output [output file]
  @param {string} type   [file type: sass || scss]