tpng-cli
v1.0.4
Published
A command line tool for tinypng.
Downloads
1
Maintainers
Readme
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>