Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/imagemagick
Advanced tools
TypeScript definitions for imagemagick
npm install --save @types/imagemagick
This package contains type definitions for imagemagick (https://github.com/rsms/node-imagemagick).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemagick.
// Imported from: https://github.com/soywiz/typescript-node-definitions/imagemagick.d.ts
/// <reference types="node" />
import child_process = require("child_process");
export declare function identify(
path: string,
callback: (err: Error, features: Features) => void,
): child_process.ChildProcess;
export declare function identify(
path: any[],
callback: (err: Error, result: string) => void,
): child_process.ChildProcess;
export declare namespace identify {
export var path: string;
}
export declare function readMetadata(
path: string,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare function convert(args: any, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function convert(
args: any,
timeout: number,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare namespace convert {
export var path: string;
}
export declare function resize(
options: Options,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare function crop(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function resizeArgs(options: Options): ResizeArgs;
export interface Features {
format?: string | undefined;
width?: number | undefined;
height?: number | undefined;
depth?: number | undefined;
}
export interface Options {
srcPath?: string | undefined; // : null,
srcData?: string | undefined; // : null,
srcFormat?: string | undefined; // : null,
dstPath?: string | undefined; // : null,
quality?: number | undefined; // : 0.8,
format?: string | undefined; // : 'jpg',
progressive?: boolean | undefined; // : false,
colorspace?: any; // : null,
width?: number | undefined; // : 0,
height?: number | undefined; // : 0,
strip?: boolean | undefined; // : true,
filter?: string | undefined; // : 'Lagrange',
sharpening?: number | undefined; // : 0.2,
customArgs?: any[] | undefined; // : [],
timeout?: number | undefined; // : 0
}
export interface ResizeArgs {
opt: Options;
args: string[];
}
These definitions were written by Carlos Ballesteros Velasco.
FAQs
TypeScript definitions for imagemagick
We found that @types/imagemagick 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.