svg-placeholder

2.0.0 • Public • Published

SVG Placeholder npm version Dependency Status js-semistandard-style license Commitizen friendly

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:

350x250 example

Stand alone

Installation

npm i -g svg-placeholder

Usage

svg-placeholder

Middleware

Installation

npm i svg-placeholder --save-dev

Usage

const express = require('express');
const app = express();
const svgPlaceholderMiddleware = require('svg-placeholder');
 
app.use('/', svgPlaceholderMiddleware());
 
app.listen(3000, function () {
  console.log('Example app listening on port 3000!');
});

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.

Package Sidebar

Install

npm i svg-placeholder

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

8.1 kB

Total Files

7

Last publish

Collaborators

  • jantimon