6.0.2 • Published 6 years ago
@mlz/mozjpeg v6.0.2
mozjpeg-bin 
mozjpeg is a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders
You probably want imagemin-mozjpeg instead.
Install
$ npm install mozjpegUsage
const {execFile} = require('child_process');
const mozjpeg = require('mozjpeg');
execFile(mozjpeg, ['-outfile', 'output.jpg', 'input.jpg'], err => {
console.log('Image minified!');
});CLI
$ npm install --global mozjpeg$ mozjpeg --helpLicense
MIT © Imagemin