code: function optimize(svg) {
    const svgo = new Svgo({
      plugins: [
        { convertShapeToPath: false },
        { mergePaths: false },
        { removeAttrs: { attrs: '(fill|stroke.*)' } },
        { removeTitle: true },
      ],
    });
  
    return new Promise(resolve => {
      svgo.optimize(svg, ({ data }) => resolve(data));
    });
  }
docs: Optimize SVG with `svgo`.
  @param {string} svg - An SVG string.
  @returns {Promise<string>}