1.0.7 • Published 5 years ago

electron-screenshot-updated v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

electron-screenshot

js-standard-style Greenkeeper badge

Take screenshots in an electron window. Note: This is an updated version of an existing package by JamesKyburz. The package was broken due to an update with electron.

Install

npm install electron-screenshot-updated

Usage

Use in an already existing atom-shell window

for a standalone implementation see electron-screenshot-service

var screenshot = require('electron-screenshot')
screenshot(options, [cb])

options

filename

png filename

delay (in ms)

default 0

crop

uses the nativeImage crop function. needs an electron rectangle object