svgo-extra
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published


svgo-extra

A collection of SVGO Plug-ins.

Features

  • Make SVG's color easy to change.
  • Make SVG's size responsive.
  • Create a suitable configuration for SVGO.

Installation

# pnmp
$ pnpm add svgo-extra

# yarn
$ yarn add svgo-extra

# npm
$ npm i svgo-extra

APIs

moveChildAttrToSVGElement

Create an SVGO plug-in that can move the attribute of the child node you specify to the svg node.

responsiveSVGSize

Create a SVGO plug-in that can make svg size responsive.

createSvgoConfig

Create a suitable configuration for SVGO, use preset-default config by default.

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i svgo-extra

    Weekly Downloads

    71

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • elenh