pingo — fast web image optimizer by Cédric Louvrier
currently only supports Windows, Linux
$ npm install -save pingo-bin
const {execFile} = require('child_process');
const pingo = require('pingo-bin');
execFile(pingo, ['input.png'], (err) => {
console.log('Image minified!');
});