
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
@types/imagemin
Advanced tools
TypeScript definitions for imagemin
npm install --save @types/imagemin
This package contains type definitions for imagemin (https://github.com/imagemin/imagemin#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin.
/// <reference types="node" />
/**
* @async
*/
declare function imagemin(input: readonly string[], options?: Options): Promise<Result[]>;
declare namespace imagemin {
/**
* @async
*/
function buffer(data: Uint8Array, options?: BufferOptions): Promise<Uint8Array>;
}
export type Plugin = (input: Uint8Array) => Promise<Uint8Array>;
export interface Options {
destination?: string | undefined;
plugins: readonly Plugin[];
glob?: boolean | undefined;
}
export interface Result {
data: Uint8Array;
sourcePath: string;
destinationPath: string;
}
export interface BufferOptions {
plugins: readonly Plugin[];
}
export default imagemin;
These definitions were written by Romain Faust, and Jeff Chan.
FAQs
TypeScript definitions for imagemin
The npm package @types/imagemin receives a total of 335,007 weekly downloads. As such, @types/imagemin popularity was classified as popular.
We found that @types/imagemin 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.