https://github.com/yisibell/svgo-extra
A collection of SVGO plug-ins.
https://github.com/yisibell/svgo-extra
svg-icon svgo svgo-plugin
Last synced: 7 months ago
JSON representation
A collection of SVGO plug-ins.
- Host: GitHub
- URL: https://github.com/yisibell/svgo-extra
- Owner: yisibell
- License: mit
- Created: 2023-02-27T06:43:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-21T09:12:08.000Z (8 months ago)
- Last Synced: 2025-03-22T20:35:47.823Z (7 months ago)
- Topics: svg-icon, svgo, svgo-plugin
- Language: TypeScript
- Homepage:
- Size: 165 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# svgo-extra
A collection of **SVGO** Plug-ins.
- [Release Notes](./CHANGELOG.md).
# Features
- Make SVG's color easy to change.
- Make SVG's size responsive.
- Create a suitable configuration for **SVGO**.# Installation
```bash
# 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.