capstant

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i capstant

Weekly Downloads

3

Version

1.0.3

License

MIT

Last publish

Collaborators

  • phi