SVG Placeholder
The SVG placeholder is a mock server to generate images for frontend mocks similar to https://placehold.it/.
It supports the same arguments to configure the image:
- http://localhost:3000/200x300/
Image with 200px width, 300px height - http://localhost:3000/200x300/fff
Image with 200px width, 300px height and a white background - http://localhost:3000/200x300/fff/000
Image with 200px width, 300px height, a white background and a black font
Stand alone
Installation
npm i -g svg-placeholder
Usage
svg-placeholder
Middleware
Installation
npm i svg-placeholder --save-dev
Usage
const express = ;const app = ;const svgPlaceholderMiddleware = ; app; app;
Changelog
Take a look at the CHANGELOG.md.
Contribution
You're free to contribute to this project by submitting issues and/or pull requests. This project uses the semistandard code style.
License
This project is licensed under MIT.