1.0.3 • Published 10 years ago
capstant v1.0.3
capstant
capture instant node.js module
Setup
On Mac OS X
$ brew install imagemagickInstall
$ npm install capstantUsage
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.jsLicense
MIT