Capture a screenshot of your local machine
- Multi/Cross Platform
- Linux: Comming soon!
- OSX: No dependencies required!
- Windows: No dependencies required!
- Promise based API
- JPG output (by default)
$ npm install --save screenshot-win
const screenshot_win = require('screenshot-win')
screenshot_win().then((data) => {
console.log(data);
});
WITH Parameters
const screenshot_win = require('screenshot-win')
screenshot_win("yourpath/filename","format").then((data) => {
console.log(data);
});
- [Note:] Allow file format (jpg,png only)
MIT © Basant Singh