screenshot-monitor-capture
TypeScript icon, indicating that this package has built-in type declarations

0.8.3 • Public • Published

ScreenshotCapture

Install

npm install screenshot-monitor-capture --save

Usage

import { takeScreenshot, Data } from "screenshot-monitor-capture";
const fs = require('fs');
 
takeScreenshot("image/png").then((data: Data) => {
    fs.writeFile("c:\\screen.png", data.buffer, (error: Error) => {
        if (error) {
            console.error(error);
        }
    });
});

Package Sidebar

Install

npm i screenshot-monitor-capture

Weekly Downloads

6

Version

0.8.3

License

MIT

Unpacked Size

5.09 kB

Total Files

5

Last publish

Collaborators

  • screenshotmonitor