Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

30 Commits

Repository files navigation

node-screencapture

Build Status

Take a screenshot of your desktop interactively.

Available in OSX, Linux, FreeBSD and Windows.

varscreencapture=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.

About

Take a screenshot of your desktop.

Resources

Stars

48 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages