svg-stubs service
Colored svg stubs for banner tests and etc
install
npm i -g svg-stubs
usage
svg-stubs 8080
in browser
http://localhost:8080?text=hello
OR
http://localhost:8080/banner.svg?text=hello_world
http://localhost:8080/[any symbols].svg
insert on your page
GET params
name | type | description | default |
---|---|---|---|
text | string | centered text on image | hello |
fontSize | number | text font size | 24 |
width | number | image width | 1180 |
height | number | image height | 90 |
fill | string | image background color | C13C41 |
time | bool | show time after text | 0 |