code: function writeYamlFile(file, data) {
    return new Promise((resolve, reject) => {
      writeFile(file, toYaml(data))
        .then(resolve)
        .catch(reject);
    });
  }
docs: Write Yaml string to File
  @param {string} file - File path
  @param {object} data - Object to turn into Yaml
  @returns {Promise}
  @see readYamlFile
  @see toYaml