0.0.4-beta • Published 5 years ago

tiny-picture v0.0.4-beta

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Tiny-picture

介绍

基于tinify-nodejs封装的图片压缩CLI,支持格式png、jpg,使用前需前往tinypng开发者中心注册获取key,每个key当月可使用500次,可申请多个key。

安装

全局环境安装

$ npm install tiny-picture -g

使用

当前目录下压缩图片,压缩完的图片会在目录result下

$ tiny start

判断当前目录下是否是GIT项目,会压缩未跟踪及修改的图片,并直接替换

$ tiny git

设置tinifyAPI的key

$ tiny set <key>

打印当前key当月剩余使用次数

$ tiny count

许可证

MIT