gemini-testing / looks-same

Node.js library for comparing images
MIT License
672 stars 54 forks source link

Add support for Promises instead of callbacks? #26

Open niftylettuce opened 7 years ago

niftylettuce commented 7 years ago

Or perhaps rewrite this to be strictly promise-based only for a new major version bump?

sipayRT commented 7 years ago

maybe in the future PR welcome ;)

imsnif commented 6 years ago

This works pretty well:

  const util = require('util')
  const looksSame = util.promisify(require('looks-same'))
  const res = await looksSame('foo.png', 'bar.png')