shrink-pic

1.0.5 • Public • Published

shrink-pic

Command line tool which compress the .png and .jpg images. It uses https://tinypng.com/ API to compress your images.

Module Usage

Install

 npm install shrink-pic -g

Visit: https://tinypng.com/developers and get you API key generated.

shrink-pic -k <your-secret-key>

This command will save your key and will use this key to compress your images. You can update the KEY by just run this same command again with new 'KEY'.

Usage: shrink-pic [ -d destinationFolder ] [ -k SedasdeEEW1231asd213 ] -s sourceFolder

Options:

-h, --help                                      output usage information
-V, --version                                   output the version number
-s, --source <source-directory-path>            mention the source directory path.
-d, --destination <destination-directory-path>  mention destination directory path.
-k, --apikey <api-key-save>                     mention api key to save or renew.

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i shrink-pic

    Weekly Downloads

    10

    Version

    1.0.5

    License

    ISC

    Last publish

    Collaborators

    • kashishgupta1990