node-mandrill icon indicating copy to clipboard operation
node-mandrill copied to clipboard

Consider implementing Promise interface

Open slavafomin opened this issue 9 years ago • 0 comments

Hello!

Thank you for this module!

However, please consider implementing a Promise interface.

Right now I have to use it like this:

var Promise = require('bluebird');
var request = Promise.promisify(mandrill(mandrillKey));
request(endpoint, options)
  .then(function (response) {
    // Do something.
  })
;

slavafomin avatar Jan 07 '16 20:01 slavafomin