1.0.4 • Published 1 year ago

tpng-cli v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Tinypng CLI

This is a simple CLI tool to upload images to the tinify/tinypng API.

I was using another tool like this one that I found incredibly useful, but unfortunately the project seems dead. So I rewrote my own! The CLI stores your key in ~/.config/tpng/config.json.

To use, just run tpng key {KEY} once!

Then, tpng <image>.

This CLI tool also supports globbing, but it does not validate that the files you select are images! You will get an error if that is the case.

WARNING: THIS PROGRAM OVERWRITES THE SELECTED FILE.

Installation

npm i -g tpng-cli

Usage

tpng key {YOUR API KEY}
tpng <image>