Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgiobairog/svgin
Experiment for a friend: Takes an SVG element and merges all paths into a single path element.
https://github.com/sgiobairog/svgin
Last synced: 25 days ago
JSON representation
Experiment for a friend: Takes an SVG element and merges all paths into a single path element.
- Host: GitHub
- URL: https://github.com/sgiobairog/svgin
- Owner: SgiobairOg
- Created: 2019-12-04T15:44:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T19:49:13.000Z (almost 3 years ago)
- Last Synced: 2024-04-17T09:51:35.067Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SVGin
Takes an SVG element and merges all paths into a single path element. Currently other SVG elements such as `rect` and `text` are left as-is.
## Usage
### Curl
```bash
npm install
npm run startcurl --noproxy localhost -H 'Content-type: text/xml' -d @test.xml -X POST http://localhost:3080/v1/gin
```The `--noproxy` flag and host value are only necessary when behind a proxy.
The `test.xml` is included but you can point the script toward any XML file.