Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elrumordelaluz/micro-outline-stroke
UI and endpoint for svg-outline-stroke
https://github.com/elrumordelaluz/micro-outline-stroke
outline-stroke svg svg-path
Last synced: 4 days ago
JSON representation
UI and endpoint for svg-outline-stroke
- Host: GitHub
- URL: https://github.com/elrumordelaluz/micro-outline-stroke
- Owner: elrumordelaluz
- Created: 2017-12-02T22:20:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T09:57:39.000Z (5 months ago)
- Last Synced: 2024-10-06T00:19:58.255Z (about 1 month ago)
- Topics: outline-stroke, svg, svg-path
- Language: JavaScript
- Homepage: https://outline-stroke.vercel.app/
- Size: 1.87 MB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Public endpoint to process strokedsvg
into outlined version using svg-outline-stroke## Endpoint
`POST` https://outline-stroke.vercel.app/api/outline
## Params
`input` [ required ] `svg` stroked code to convert in outlines
`...rest?` [ optionals ] see [svg-outline-stroke params](https://github.com/elrumordelaluz/outline-stroke#params)## Examples
Used [this tool](https://yoksel.github.io/url-encoder/) to `url-encode` the
`svg` code but you could pass regular `svg` code if you use for example [Postman](https://www.getpostman.com/)```zsh
curl -d "input=%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cline x1='32' y1='16' x2='32' y2='48' fill='none' stroke='%23202020' stroke-miterlimit='10' stroke-width='2'/%3E%3Cline x1='48' y1='32' x2='16' y2='32' fill='none' stroke='%23202020' stroke-miterlimit='10' stroke-width='2'/%3E%3C/svg%3E" -X POST https://outline-stroke.vercel.app/api/outline
```