function renderVersionBadge({
  version,
  tag,
  defaultLabel,
  prefix,
  suffix,
  versionFormatter = versionColor,
  isPrerelease,
}) {
  return {
    label: tag ? `${defaultLabel}@${tag}` : defaultLabel,
    message:
      (prefix ? `${prefix}${version}` : addv(version)) +
      (suffix ? ` ${suffix}` : ''),
    color: versionFormatter(isPrerelease ? 'pre' : version),
  }
}
Creates a badge object that displays information about a version number. It should usually be used to output a version badge.

@param {object} options - An object that contains the options for the badge
@param {string} options.version - The version number to display on the badge
@param {string} [options.tag] - The tag to display on the badge, such as "alpha" or "beta"
@param {string} [options.defaultLabel] - The default label to display on the badge, such as "npm" or "github"
@param {string} [options.prefix]  - The prefix to display on the message, such as ">=", "v", overrides the default behavior of using addv
@param {string} [options.suffix] - The suffix to display on the message, such as "tested"
@param {Function} [options.versionFormatter=versionColor] - The function to use to format the color of the badge based on the version number
@param {boolean} [options.isPrerelease] - Whether the version is explicitly marked as a prerelease by upstream API
@returns {object} A badge object that has three properties: label, message, and color
@example
renderVersionBadge({version: '1.2.3', tag: 'alpha', defaultLabel: 'npm'}) // returns {label: 'npm@alpha', message: 'v1.2.3', color: 'orange'} because
it uses the tag and the defaultLabel to create the label, the addv function to add a 'v' prefix to the version in message,
and the versionColor function to assign an orange color based on the version.