code: function toYAML (api, spaces, wrap) {
    const jsYaml = require("js-yaml");
  
    return jsYaml.dump(api, {
      indent: spaces,
      lineWidth: wrap,
      noRefs: true
    });
  }
docs: 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