tinyjpg
v1.0.6
Published
compress images by tinypng api
Downloads
6
Readme
Tinyjpg
1. install:
$ npm i -g tinyjpg
or
$ yarn global add tinyjpg
2. config setting:
set api key
$ tinyjpg config add key <api key>
reset api key
$ tinyjpg config remove key
add ignore folder
$ tinyjpg config add ignore <folder>
remove ignore folder
$ tinyjpg config remove ignore <folder>
get config list
$ tinyjpg config list
3. compress image:
compress file
$ tinyjpg compress <filename>
compress all images of dir
$ tinyjpg compress <dir>
compress all images of dir and output
$ tinyjpg compress <dir> <output>