const resemble = require("./resemble"); module.exports = function compareImages(image1, image2, options) { return new Promise((resolve, reject) => { resemble.compare(image1, image2, options, (err, data) => { if (err) { reject(err); } else { resolve(data); } }); }); };