WebP is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller in size compared to JPEG images at equivalent SSIM index.
You probably want
$ npm install cwebp-bin
const execFile = ;const cwebp = ;;
$ npm install --global cwebp-bin
$ cwebp --help
MIT © Imagemin