Gathering detailed insights and metrics for imagemin
Gathering detailed insights and metrics for imagemin
Gathering detailed insights and metrics for imagemin
Gathering detailed insights and metrics for imagemin
npm install imagemin
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5,666 Stars
286 Commits
262 Forks
60 Watchers
2 Branches
21 Contributors
Updated on Jul 11, 2025
Latest Version
9.0.1
Package Id
imagemin@9.0.1
Unpacked Size
6.09 kB
Size
2.75 kB
File Count
4
NPM Version
10.9.2
Node Version
23.6.1
Published on
Mar 07, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Minify images seamlessly
1npm install imagemin
1import imagemin from 'imagemin'; 2import imageminJpegtran from 'imagemin-jpegtran'; 3import imageminPngquant from 'imagemin-pngquant'; 4 5const files = await imagemin(['images/*.{jpg,png}'], { 6 destination: 'build/images', 7 plugins: [ 8 imageminJpegtran(), 9 imageminPngquant({ 10 quality: [0.6, 0.8] 11 }) 12 ] 13}); 14 15console.log(files); 16//=> [{data: <Uint8Array 89 50 4e …>, destinationPath: 'build/images/foo.jpg'}, …]
Returns Promise<object[]>
in the format {data: Uint8Array, sourcePath: string, destinationPath: string}
.
Type: string[]
File paths or glob patterns.
Type: object
Type: string
Set the destination folder to where your files will be written. If no destination is specified, no files will be written.
Type: Array
The plugins to use.
Type: boolean
Default: true
Enable globbing when matching file paths.
Returns Promise<Uint8Array>
.
Type: Uint8Array
The image data to optimize.
Type: object
Type: Array
Plugins to use.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More