Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including imagemin-cli with all npm packages installed. Try it out:

imagemin-cli lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("imagemin-cli/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

imagemin-cli v4.0.1

Minify images

imagemin-cli Build Status

Minify images

Issues with the output should be reported on the imagemin issue tracker.

Install

$ npm install --global imagemin-cli

Usage

$ imagemin --help

  Usage
    $ imagemin <path|glob> ... --out-dir=build [--plugin=<name> ...]
    $ imagemin <file> > <output>
    $ cat <file> | imagemin > <output>

  Options
    -p, --plugin   Override the default plugins
    -o, --out-dir  Output directory

  Examples
    $ imagemin images/* --out-dir=build
    $ imagemin foo.png > foo-optimized.png
    $ cat foo.png | imagemin > foo-optimized.png
    $ imagemin --plugin=pngquant foo.png > foo-optimized.png

Related

License

MIT © imagemin

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free