Choose an SVGO interface
mainSVGO is available through four official interfaces depending on your environment:
- Command-line application: Best for manual optimization or shell scripts. Use
svgo --helpfor documentation. - Node.js library: Best for integrating SVGO into Node.js-based build tools or backend services.
- Browser bundle: Best for client-side SVG optimization directly in the browser.
- Webpack loader: Best for Webpack-based projects to automatically optimize SVG imports and return them as Data URLs.