placehold

v1.1.1
node placeholder image generator
placehold

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%20world!
http://localhost:9191/?text=hello%20world!
...

npm i placehold

Metadata

  • MIT
  • >= 4.0.0
  • 楼教主
  • released 10/14/2016

Downloads

Maintainers