index.js
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);
}
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);
}
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 ) ; }
Convert data to yaml with the specified
defaults and user-defined options
Convert data to yaml with the specified defaults and user - defined options