node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


jpeg-recompress wrapper that makes it seamlessly available as a local dependency


Compress JPEGs by re-encoding to the smallest JPEG quality while keeping perceived visual quality the same and by making sure huffman tables are optimized

$ npm install --save jpeg-recompress-bin
var execFile = require('child_process').execFile;
var jpegRecompress = require('jpeg-recompress-bin');
execFile(jpegRecompress, ['--quality high', '--min 60', 'input.jpg', 'output.jpg'], function (err) {
    console.log('Image minified');
$ npm install --global jpeg-recompress-bin
$ jpeg-recompress --help

MIT © imagemin