jpeg-min is based on guetzli.
var jpegmin = require('jpeg-min');
// The jpeg file will be compressed and replaced.
jpegmin('/path/to/my.jpg', function(err) {
// ...
});
ATTENTION: By default, the jpeg file will be replaced with compressed one. So, if you wanna keep the original jpeg, make a copy before invoke jpeg-min.