code: function toYaml(data, options) {
    var defaults = {indent: 2, skipInvalid: false, flowLevel: -1};
    var opts = extend(defaults, options);
    var fn = opts.safe ? yaml.safeDump : yaml.dump;
    return fn(data, opts);
  }
docs: Convert data to yaml with the specified
  defaults and user-defined options