Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 735 Bytes

README.md

File metadata and controls

69 lines (43 loc) · 735 Bytes

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>