packages/core/lib/utils.js
function writeYamlFile(file, data, cb) {
  fs.writeFile(file, yaml.safeDump(data), () => {
    if (cb) cb();
  });
}
function writeYamlFile(file, data, cb) {
  fs.writeFile(file, yaml.safeDump(data), () => {
    if (cb) cb();
  });
}
function writeYamlFile ( file , data , cb ) { fs . writeFile ( file , yaml . safeDump ( data ) , ( ) => { if ( cb ) cb ( ) ; } ) ; }
Write Yaml string to File
@param {string} file - File path
@param {object} data - Object to turn into Yaml
@param {function} cb - Optional callback when done
@see writeYamlFileSync
Write Yaml string to File