Function optimizeSvg

  • The function optimizes an SVG file asynchronously using SVGO and writes the optimized SVG to a specified output file.

                   where the optimized SVG file will be written to.
    

    Parameters

    • svg: string

      The SVG file to optimize

    • svgoOptions: SvgoConfig

      svgoOptions is an object that contains settings for optimizing the SVG using SVGO (SVG Optimizer). These settings can include things like removing comments, removing empty groups, and optimizing path data. The specific settings and their values will depend on the desired optimization settings.

    Returns any