packages/build-tools/utils/yaml.js
function readYamlFile(file) {
  return new Promise((resolve, reject) => {
    readFile(file, 'utf8')
      .then(data => resolve(fromYaml(data)))
      .catch(reject);
  });
}
function readYamlFile(file) {
  return new Promise((resolve, reject) => {
    readFile(file, 'utf8')
      .then(data => resolve(fromYaml(data)))
      .catch(reject);
  });
}
function readYamlFile ( file ) { return new Promise ( ( resolve , reject ) => { readFile ( file , 'utf8' ) . then ( data => resolve ( fromYaml ( data ) ) ) . catch ( reject ) ; } ) ; }
Read Yaml File into Object
@param {string} file - File path
@returns {Promise<object>} Promise resolves with yaml file as object
@see fromYaml
@see writeYamlFile
Read Yaml File into Object