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