8.0.0 • Published 4 years ago
@mole-inc/mozjpeg v8.0.0
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 @mole-inc/mozjpegUsage
import {execFile} from 'child_process';
import mozjpeg from '@mole-inc/mozjpeg';
execFile(mozjpeg, ['-outfile', 'output.jpg', 'input.jpg'], err => {
console.log('Image minified!');
});CLI
$ npm install --global @mole-inc/mozjpeg$ mozjpeg --helpLicense
This is a fork of imagemin/mozjpeg-bin licensed under the MIT License.
see license file and vendor/mozjpeg-license.txt file.