teenypng
Optimize PNG + JPEG images with TinyPNG.
Command Line
Install with NPM.
$ npm install -g teenypng$ teenypng images/*.png --apikey XXXXXXXXXX
As a module
Install
$ npm install --save-dev teenypng
Use
"use strict"; var teenypng = ;;
Settings
apikey
: Your API key from tinypng.com (required)onlyStats
: Do not download the optimized file (optional, default: false)
"use strict"; var teenypng settings; teenypng = ;settings = "apikey": "XXXXXXXXXX" "onlyStats": true; ;
Tests
Test with nodeunit
$ npm test