Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
electron-screenshoter
Advanced tools
electron 截图插件
内网安装
yarn add electron-screenshoter
使用方式
const { initMain, close } = require('electron-screenshot');
app.on('ready', () => {
const win = new BrowserWindow();
initMain(win.webContents);
// 新增快捷键取消截图
Menu.setApplicationMenu(
Menu.buildFromTemplate([
{
label: '编辑',
submenu: [
{
accelerator: 'Esc',
label: '取消截图',
click: close
}
]
}
])
);
});
注:传入 intMain
方法的参数为实际调用截图功能的渲染进程
const { screenshot } = require('electron-screenshot');
screenshot().then(({ base64 }) => {
console.log('截图 base64 地址: ', base64);
});
windows 系统下使用 nircmd 程序捕捉桌面帧,为保证一致性,插件已将该可执行文件集成至项目中,打包时需要在 package.json
中增加以下配置:
{
...
"build": {
...
"asarUnpack": [
"*.exe"
],
...
}
...
}
FAQs
a electron screenshot util
The npm package electron-screenshoter receives a total of 3 weekly downloads. As such, electron-screenshoter popularity was classified as not popular.
We found that electron-screenshoter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.