
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@types/screenshot-desktop
Advanced tools
TypeScript definitions for screenshot-desktop
npm install --save @types/screenshot-desktop
This package contains type definitions for screenshot-desktop (https://github.com/bencevans/screenshot-desktop).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/screenshot-desktop.
/// <reference types="node" />
export = screenshotDesktop;
declare function screenshotDesktop(
options?: screenshotDesktop.ScreenshotOptionsWithoutFilename,
): Promise<NonSharedBuffer>;
declare function screenshotDesktop(
options?: screenshotDesktop.ScreenshotOptionsWithFilename,
): Promise<string>;
declare namespace screenshotDesktop {
interface ScreenshotOptions {
filename?: string;
format?: ImageFormat;
screen?: DisplayID;
linuxLibrary?: "scrot" | "imagemagick";
}
interface ScreenshotOptionsWithFilename extends ScreenshotOptions {
filename: string;
}
interface ScreenshotOptionsWithoutFilename extends ScreenshotOptions {
filename?: "";
}
interface Display {
id: number | string;
name: string;
}
type DisplayID = Display["id"];
type ImageFormat = "jpg" | "png";
function listDisplays(): Promise<Array<Display>>;
function all(): Promise<Array<NonSharedBuffer>>;
}
These definitions were written by Usama Ahsan.
FAQs
TypeScript definitions for screenshot-desktop
The npm package @types/screenshot-desktop receives a total of 12,601 weekly downloads. As such, @types/screenshot-desktop popularity was classified as popular.
We found that @types/screenshot-desktop demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.