https://github.com/joelmarquez90/tiny-count
A node module that iterates recursively through a directory and compresses all the images with TinyPNG
https://github.com/joelmarquez90/tiny-count
compresses javascript node npm-module tinypng
Last synced: about 1 year ago
JSON representation
A node module that iterates recursively through a directory and compresses all the images with TinyPNG
- Host: GitHub
- URL: https://github.com/joelmarquez90/tiny-count
- Owner: joelmarquez90
- License: mit
- Created: 2017-01-31T21:07:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T20:53:45.000Z (over 7 years ago)
- Last Synced: 2025-04-23T09:51:28.938Z (about 1 year ago)
- Topics: compresses, javascript, node, npm-module, tinypng
- Language: JavaScript
- Size: 30.3 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tiny-count
A node module that iterates recursively through a directory and compresses all the images with TinyPNG

## Features
- Compresses images from one directory using TinyPNG API
## Install
`npm install -g tiny-count`
## Usage
First you have to register in [TinyPNG](https://tinypng.com/) and get an API KEY. Then, you run this:
`tiny-count -k -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
- **MIT** : http://opensource.org/licenses/MIT