placehold

1.1.1 • Public • Published

placehold

node placeholder image generator
It will not output PNG, JPG pictures, just SVG.

Linux Build Coverage Status Dependencies node license MIT

How to use it

$ npm install -g placehold
$ placehold

By default it will listen on port 9191. You can change this by passing in the port as an environment variable:

# in linux, mac 
$ PORT=1234 placehold
 
# or in windows 
> set PORT=1234
> placehold

Format

http://localhost:9191/[size][/bgcolor][/color][?text=test]
  • size - 200 or 200x100 to set the width and height.
  • bgcolor - The CSS background-color property.
  • color - The CSS color property.
  • text - The text information.

Examples

http://localhost:9191/200
http://localhost:9191/200x100
http://localhost:9191/200x100/eee
http://localhost:9191/200x100/369/fff
http://localhost:9191/200x100/369/fff?text=hello world!
http://localhost:9191/?text=hello world!
...

Readme

Keywords

Package Sidebar

Install

npm i placehold

Weekly Downloads

8

Version

1.1.1

License

MIT

Last publish

Collaborators

  • mr.lou