Package-level declarations

Types

Link copied to clipboard
sealed interface SvgoPlugin

Describes a single SVGO plugin and its parameters.

Link copied to clipboard
data class SvgoPluginConfig(val js2svg: SvgoPluginConfig.Js2SvgConfig = Js2SvgConfig(), val plugins: List<SvgoPlugin>)

Platform-agnostic description of an SVGO configuration.

Properties

Link copied to clipboard

The default SVGO configuration used by s2c for both CLI and browser paths.

Functions

Link copied to clipboard

Renders this SvgoPluginConfig as a browser-compatible dynamic JS object for the svgo/browser API.

Link copied to clipboard

Renders this SvgoPluginConfig as an ESM module string suitable for the svgo CLI's --config flag.