Socket
Socket
Sign inDemoInstall

nodejs-screen-capture

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nodejs-screen-capture

Node.js module to take a screenshot


Version published
Weekly downloads
14
increased by133.33%
Maintainers
1
Install size
441 kB
Created
Weekly downloads
 

Readme

Source

Node Screen Capture

Part of Presentation Remote project. This module uses Java Screen Capture to capture screenshots.

Note

This module is currently under heavy development and very unstable.

Usage

After loading module you can do this actions:

  • Capture a screenshot and save as file with .captureAndSave(width, height, format, file)
  • Capture a screenshot and get image as base64 string with .captureAndGetBase64(width, height, format).
  • Capture a screenshot and get file with standard output stream with .captureAndGetStream(width, height, format). (screenshot in the shape of string thet given from standard output stream).

You can use this values as format parameter in above methods.

  • IMAGE_FORMAT_PNG as PNG format
  • IMAGE_FORMAT_JPG as JPG format
  • IMAGE_FORMAT_GIF as GIF format

Changes (V 0.3.0)

  • Callback is removed from parameters of captureAndGetBase64 function
  • Empty output bux is fixed

Keywords

FAQs

Last updated on 16 Nov 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc