Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
screenshot-desktop
Advanced tools
Capture a screenshot of your local machine
apt-get install imagemagick
$ npm install --save screenshot-desktop
const screenshot = require('screenshot-desktop')
screenshot().then((img) => {
// img: Buffer filled with jpg goodness
// ...
}).catch((err) => {
// ...
})
const screenshot = require('screenshot-desktop')
screenshot({format: 'png'}).then((img) => {
// img: Buffer filled with png goodness
// ...
}).catch((err) => {
// ...
})
screenshot.listDisplays().then((displays) => {
// displays: [{ id, name }, { id, name }]
screenshot({ screen: displays[displays.length - 1].id })
.then((img) => {
// img: Buffer of screenshot of the last display
});
})
screenshot.all().then((imgs) => {
// imgs: an array of Buffers, one for each screen
})
screenshot({ filename: 'shot.jpg' }).then((imgPath) => {
// imgPath: absolute path to screenshot
// created in current working directory named shot.png
});
// absolute paths work too. so do pngs
screenshot({ filename: '/Users/brian/Desktop/demo.png' })
filename
Optional. Absolute or relative path to save output.format
Optional. Valid values png|jpg
.linuxLibrary
Optional. Linux only. Valid values scrot|imagemagick
. Which library to use. Note that scrot does not support format or screen selection.MIT © Ben Evans
FAQs
Capture a screenshot of your local machine
The npm package screenshot-desktop receives a total of 67,315 weekly downloads. As such, screenshot-desktop popularity was classified as popular.
We found that screenshot-desktop 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.