Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "tinyjpg", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "compress images by tinypng api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,1 +0,61 @@ | ||
tinyjpg | ||
# Tinyjpg | ||
## 1. config setting: | ||
> set api key | ||
``` shell | ||
$ tinyjpg config add key <api key> | ||
``` | ||
> reset api key | ||
``` shell | ||
$ tinyjpg config remove key | ||
``` | ||
> add ignore folder | ||
``` shell | ||
$ tinyjpg config add ignore <folder> | ||
``` | ||
> remove ignore folder | ||
``` shell | ||
$ tinyjpg config remove ignore <folder> | ||
``` | ||
> get config list | ||
``` shell | ||
$ tinyjpg config list | ||
``` | ||
## 2. compress image: | ||
> compress file | ||
``` shell | ||
$ tinyjpg compress <filename> | ||
``` | ||
> compress all images of dir | ||
``` shell | ||
$ tinyjpg compress <dir> | ||
``` | ||
> compress all images of dir and output | ||
``` shell | ||
$ tinyjpg compress <dir> <output> | ||
``` | ||
7106
62