0.3.1 • Published 6 years ago

screencapture v0.3.1

Weekly downloads
15
License
MIT
Repository
github
Last release
6 years ago

node-screencapture

Build Status

Take a screenshot of your desktop interactively.

Available in OSX, Linux, FreeBSD 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
})

You can use env named CAPTURE_COMMAND for capture. This is formatted with %s for file path; CAPTURE_COMMAND="shutter -s -e -o %s".

Installation

npm install -g screencapture

In Linux, you need to install imagemagick.

0.3.1

6 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago