packages/core/lib/utils.js
function readYamlFile(file, cb) {
  fs.readFile(file, 'utf8', (err, data) => {
    if (err) throw err;
    cb(yaml.safeLoad(data));
  });
}
function readYamlFile(file, cb) {
  fs.readFile(file, 'utf8', (err, data) => {
    if (err) throw err;
    cb(yaml.safeLoad(data));
  });
}
Read Yaml File into Object
@param {string} file - File path
@param {function} cb - Callback with data
@see readYamlFileSync