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

web_screencapture

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web_screencapture

the screen capture of web

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

screenCapture

网页截图

install

安装很简单,可以用npm 或者浏览器引入screenCapture.js


npm i web_screencapture
// 或者
npm install web_screencapture -i

use

 
import ScreenCapture from 'web_screencapture';

let sc = new ScreenCapture({
    copyType: 'all'
});
sc.init();


键盘按下ctrl+b开始截图;ctrl+m全屏截图;esc退出截图

options

初始化构建函数的参数如下:

  • copyType: 截图后的行为:all : 弹出弹窗选择;download: 直接下载截图;_blank: 新窗口打开截图
  • keyCode: 键盘触发截图的keyCode,默认66(b)
  • fkeyCode: 键盘触发全屏截图的keyCode,默认77(m)

screen capture

开始截图

截图完成

Keywords

FAQs

Package last updated on 03 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