You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

capstant

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capstant

capture instant

1.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 30 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts