0.1.2 • Published 10 years ago
svg-stubs v0.1.2
svg-stubs service
Colored svg stubs for banner tests and etc
install
npm i -g svg-stubsusage
svg-stubs 8080in browser
http://localhost:8080?text=hello
OR
http://localhost:8080/banner.svg?text=hello_world
http://localhost:8080/[any symbols].svginsert on your page
<body>
<img src="http://localhost:8080/banner.svg?text=hello_world" />
</body>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 |
