Desktop screencapture using nodejs and vlc
npm install node-screencaptureA command line binary to take a screenshot of the desktop.
It is using vlc to realize screenshot.
Get vlc installed. This module won t check or install it for you.
```
npm i node-screencapture -g
`
Usage: node-screencapture [options]
node-screencapture --output some.png
Options:
-h, --help output usage information
-V, --version output the version number
--format
-o, --output
--vlc
`
`js
var shooter = new VlcScreenshot();
shooter.format = program.format || 'png';
shooter.vlcPath = program.vlc || 'cvlc';
shooter.shoot(program.output, function(){
console.error('All done !');
});
``