0.3.0 • Published 6 years ago

tiny-count v0.3.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

tiny-count

A node module that iterates recursively through a directory and compresses all the images with TinyPNG

nodei.co

Features

  • Compresses images from one directory using TinyPNG API

Install

npm install -g tiny-count

Usage

First you have to register in TinyPNG and get an API KEY. Then, you run this:

tiny-count -k <TinyPNG API KEY> -p /path/to/your/root/images/directory

By default, it filters the files that aren't staged in git. If you want to force the replacement, use the -f or --force option.

And you will have an output like this:

Compressing... [=====================         ] 82% 410/500

Size       Description
---------  -----------
10.34 MB   Before     
9.66 MB    After      
698.16 KB  Difference

Author

Joel Márquez 90joelmarquez@gmail.com http://github.com/joelmarquez90

License

0.3.0

6 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago