Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

screenshot-windows

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screenshot-windows

Utility for taking screenshots on Windows

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
Maintainers
1
Weekly downloads
 
Created
Source

Screenshot Windows

Utility for taking screenshots on Windows.

Usage

const screenshotWindows = require('screenshot-windows');
const result = screenshotWindows(options);

Options

  • filename ('screenshot.jpg') Absolute or relative path to save the screenshot. Supports .jpg, .jpeg or .png file extension.
  • quality (80) JPEG encoding quality.
  • width Width of the saved screenshot. Is automatically determined if height or maxSize is supplied, otherwise defaults to the screen width.
  • height Height of the saved screenshot. Is automatically determined if width or maxSize is supplied, otherwise defaults to the screen height.
  • maxSize The maximum width or height of the screenshot. Can be used without width or height to fit the screenshot in a bounding box.

Return value

An object containing all the settings applied for taking the screenshot, including an absolute path to the screenshot file.

{
  filename: 'screenshot.jpg',
  filenameAbsolute: 'C:\\Users\\Random\\screenshot-windows\\screenshot.jpg',
  quality: 80,
  width: 2560,
  height: 1440
}

Keywords

FAQs

Package last updated on 25 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc