Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


Outline Stroke


Public endpoint to process stroked svg 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
```