code: function processSvg(svg) {
    return (
      optimize(svg)
        .then(setAttrs)
        .then(format)
        // remove semicolon inserted by prettier
        // because prettier thinks it's formatting JSX not HTML
        .then(svg => svg.replace(/;/g, ''))
    );
  }
docs: Process SVG string.
  @param {string} svg - An SVG string.
  @param {Promise<string>}