Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 5, 2024 via pnpm

imagemin 8.0.1

Minify images seamlessly
Package summary
Share
0
issues
3
licenses
37
MIT
4
ISC
1
BSD-3-Clause
Package created
30 Aug 2013
Version published
11 Aug 2021
Maintainers
7
Total deps
42
Direct deps
7
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
37 Packages, Including:
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
@tokenizer/token@0.3.0
array-union@3.0.1
braces@3.0.2
dir-glob@3.0.1
fast-glob@3.3.2
file-type@16.5.4
fill-range@7.0.1
globby@12.2.0
ignore@5.3.1
imagemin@8.0.1
is-extglob@2.1.1
is-glob@4.0.3
is-number@7.0.0
junk@3.1.0
merge2@1.4.1
micromatch@4.0.5
p-pipe@4.0.0
path-type@4.0.0
peek-readable@4.1.0
picomatch@2.3.1
queue-microtask@1.2.3
readable-stream@3.6.2
readable-web-to-node-stream@3.0.2
replace-ext@2.0.0
reusify@1.0.4
run-parallel@1.2.0
safe-buffer@5.2.1
slash@3.0.0
slash@4.0.0
string_decoder@1.3.0
strtok3@6.3.0
to-regex-range@5.0.1
token-types@4.2.1
util-deprecate@1.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
fastq@1.17.1
glob-parent@5.1.2
graceful-fs@4.2.11
inherits@2.0.4

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
ieee754@1.2.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

7
All Dependencies CSV
β“˜ This is a list of imagemin 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
file-type16.5.420.42 kBMIT
prod
globby12.2.06.47 kBMIT
prod
graceful-fs4.2.119.57 kBISC
prod
junk3.1.02.28 kBMIT
prod
p-pipe4.0.02.43 kBMIT
prod
replace-ext2.0.02.4 kBMIT
prod
slash3.0.01.8 kBMIT
prod

Visualizations

Frequently Asked Questions

What does imagemin do?

Imagemin is a powerful npm tool designed to seamlessly minify images. It works by reducing the file size of your images without affecting their quality, making your websites load faster and use less bandwidth. This streamlined performance can also enhance UX, helping to improve your site's SEO.

How do you use imagemin?

Imagemin is incredibly simple to use. To get started, first install the tool via npm, using the command npm install imagemin. Once installed, a typical usage would look like this:

import imagemin from 'imagemin';
import imageminJpegtran from 'imagemin-jpegtran';
import imageminPngquant from 'imagemin-pngquant';

const files = await imagemin(['images/*.{jpg,png}'], {
	destination: 'build/images',
	plugins: [
		imageminJpegtran(),
		imageminPngquant({
			quality: [0.6, 0.8]
		})
	]
});

console.log(files);
//=> [{data: <Buffer 89 50 4e …>, destinationPath: 'build/images/foo.jpg'}, …]

In the example above, the imagemin function takes in an array of file paths or glob patterns of the images to be minified, pointing to their locations on your file system. The function then optimizes these images using different plugins (in this case, imageminJpegtran and imageminPngquant). The resulting minified images are stored in the specified destination folder (build/images).

Where are the imagemin docs?

The documentation for imagemin can be found on its GitHub page or within the readme file in the package. This includes the API, different usages, and related tools. Potential plugins to use with imagemin can be found on npm under the keyword imageminplugin. Be sure to look through these resources for detailed guidance on how to use and customize the tool for your specific needs.