Skip to content

eli-rich/tpng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published