lib/utils/fs/parse.js/loadYaml
const loadYaml = (contents, options) => {
  let data;
  let error;
  try {
    data = YAML.load(contents.toString(), options || {});
  } catch (exception) {
    error = exception;
  }
  return { data, error };
};