node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

dummyimage

DummyImage

Generate Dummy Image.

Installation

NOTES: DummyImage uses Cairo with node-canvas. Unless previously installed you'll need Cairo.

$ npm install dummyimage

Usage

var DummyImage = require('dummyimage');
 
var dummyimage = new DummyImage({
  dest: './images/',
  format: 'png',
  name: 'dummyimage',
  text: 'Dummy Dummy!'
});
 
dummyimage.create(function() {
  console.log('Done.');
});

CLI

$ node ./node_modules/.bin/dummyimage images/dummyimage.png

License

MIT