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
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
5,585 Stars
284 Commits
259 Forks
60 Watching
2 Branches
20 Contributors
Updated on 25 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-8.2%
175,481
Compared to previous day
Last week
-3%
920,995
Compared to previous week
Last month
6.4%
4,037,717
Compared to previous month
Last year
-15.9%
48,669,224
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 binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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 2024-11-18
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