lib/bundle.js
function toYAML (api, spaces, wrap) {
  const jsYaml = require("js-yaml");

  return jsYaml.dump(api, {
    indent: spaces,
    lineWidth: wrap,
    noRefs: true
  });
}
function toYAML (api, spaces, wrap) {
  const jsYaml = require("js-yaml");

  return jsYaml.dump(api, {
    indent: spaces,
    lineWidth: wrap,
    noRefs: true
  });
}
function toYAML ( api , spaces , wrap ) { const jsYaml = require ( "js-yaml" ) ; return jsYaml . dump ( api , { indent : spaces , lineWidth : wrap , noRefs : true } ) ; }
Serializes the given API as YAML, using the given spaces for formatting.

@param {object} api API to convert to YAML
@param {string|number} spaces number of spaces to ident
@param {number} wrap the column to word-wrap at
Serializes the given API as YAML using the given spaces for formatting .