npm.io
1.0.1 • Published 10 years agoCLI

tinyImages

Licence
—
Version
1.0.1
Deps
7
Vulns
0
Weekly
0
Stars
1

image

Minify Images by using TinyPNG API

How to install

npm install tinyImages -g

How to use CLI?

tiny-images [options]

-h, --help               output usage information
-v, --version            output the version number
-a, --add [api_key]      Add api key to TinyImages
-d, --dir [path]         File or directory path for tiny images  - defaults to ./
-t, --target [path]      Directory for output tinify images  - defaults to ./
Examples:

To add a Tiny PNG API key do:

tiny-images -a "api key here"

To minify the images do:

tiny-images -d "file or directory path" -t "output path"

Keywords