Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including tinyimg with all npm packages installed. Try it out:

var tinyimg = require("tinyimg")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

tinyimg v0.0.6

tiny images tool

tinyimg

压缩图片的工具

安装

npm install -g tinyimg

准备工作

使用此工具,需要先到tinypng官网申请API key https://tinypng.com/developers.

使用方法

    tinyimg -h

使用效果

tinyimg

TODO

  • [x] svg压缩
  • [ ] gif压缩

说明

此工具受 Tinypng-cligulp-tinypng的启发,做了些汉化工作,以及取两个插件优点合并而成

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free