geta6 / node-screencapture

Take a screenshot of your desktop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-screencapture

Build Status

Take a screenshot of your desktop interactively.

Available in OSX, Linux and Windows.

var screencapture = require('screencapture')

screencapture(function (err, imagePath) {
  // then you have imagePath as png.
  //
  // When an user exits screencapture without taking a screenshot,
  // imagePath == null
})

You can specify an output file path.

screencapture('/path/to/output.png', function (err, imagePath) {
  // imagePath is '/path/to/output.png' or null
})

Installation

npm install -g screencapture

In Linux, you need to install imagemagick.

About

Take a screenshot of your desktop.


Languages

Language:JavaScript 100.0%