Skip to content

alekzonder/svg-stubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-stubs service

Colored svg stubs for banner tests and etc

NPM

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

<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

About

Colored svg stubs for banner tests and etc

Resources

Stars

Watchers

Forks

Packages

No packages published