https://github.com/morlay/simplify-svg
https://github.com/morlay/simplify-svg
svg svgo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/morlay/simplify-svg
- Owner: morlay
- License: mit
- Created: 2016-03-14T03:05:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T19:23:47.000Z (almost 2 years ago)
- Last Synced: 2025-04-04T06:11:15.475Z (about 1 year ago)
- Topics: svg, svgo
- Language: TypeScript
- Size: 502 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Simplify SVG
Simplify SVG which is exported by Sketch/Illustrator etc.
[](https://npmjs.org/package/@morlay/simplify-svg)
[](https://travis-ci.org/morlay/simplify-svg)
### Usage
#### Use `@morlay/simplify-svg`
```ts
simplifySvg(svgString: string, plugins?: IPluginConfig[]): string
```
### Notices
- All shape will be transformed to path
- `stoken-width` should be transformed by Sketch or Illustrator, if want the SVG unlimited scalable