capstant
v1.0.3
Published
capture instant
Downloads
11
Readme
capstant
capture instant node.js module
Setup
On Mac OS X
$ brew install imagemagick
Install
$ npm install capstant
Usage
var capstant = require('capstant');
Examples
capstant.shot('http://google.com', './output/google.png').then(function(url) {
console.log('finish');
});
capstant.shot('http://phiary.me', './output/phiary2.png', {
phantomPath: 'slimerjs',
delay: 1200,
width: 320,
height: 240,
viewportSize: {
width: 640,
height: 480,
},
}).then(function(url) {
console.log('finish');
});
For Developer
Test
$ node test/test.js
License
MIT