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, ''))
  );
}
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, ''))
  );
}
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 , '' ) ) ) ; }
Process SVG string.
@param {string} svg - An SVG string.
@param {Promise<string>}
Process SVG string .
process SVG