compress-image
Minify image using tinypng
Install
Install with npm
npm install --save-dev compress-image
Example
var compressImage = require('compress-image');
compressImage('inputDir','outputDir',{
tinifyApiKey: 'xxxxxxx' // tinypng developer apikey
compresssPercent: 10 // limit compress scale
});
License
MIT © zhiyingzzhou