Skip to content

basantsd/screenshot-win

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 30, 2024
baee8e1 · Jun 30, 2024

History

5 Commits
Dec 23, 2021
Dec 23, 2021
Jun 30, 2024
Dec 23, 2021
Dec 23, 2021
Dec 23, 2021
Jun 30, 2024
Dec 23, 2021

Repository files navigation

screenshot-win

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)

Install

$ npm install --save screenshot-win

Usage

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)

Licence

MIT © Basant Singh

Maintainers

*Basant Singh