0.1.1 • Published 11 years ago
xshot v0.1.1
xshot
takes screenshots on osx.
example
var xshot = require('xshot');
var fs = require('fs');
fs.writeFileSync('out.png', xshot());api
xshot(opts={})
Returns an image containing the contents of the specified display.
opts object can have following properties:
displayis the unit number of the display for which an image is being created. (default, 0)filetypecan be eitherpngorjpeg. (default, png)
usage
usage: xshot filename [options]
options:
-d, --display specify the display id
-f, --filetype specify the output filetype, png or jpeg
-v, --version show the version numberlicense
mit