pngquant is a command-line utility for converting 24/32-bit PNG images to paletted (8-bit) PNGs. The conversion reduces file sizes significantly (often as much as 70%) and preserves full alpha transparency.
$ npm install --save pngquant-bin
const execFile = execFile;const pngquant = ;;
$ npm install --global pngquant-bin
$ pngquant --help
MIT © imagemin