1.0.4 • Published 5 years ago
xl_tiny v1.0.4
title
获取包
npm install -g xl_tiny
获取并设置 key
https://tinypng.com/dashboard/api
免费的key每个月只能操作 500 张图片
xl_tiny set key
xl_tiny show
压缩优化文件
xl_tiny file filePath // 直接压缩替换
xl_tiny file filePath.png -o distPath.png
压缩优化文件夹下面的图片
xl_tiny dir dirPath // 直接压缩替换
xl_tiny dir dirPath -o distPath