ay-callbackify
v1.0.8
Published
node callbackify promises
Downloads
7
Maintainers
Readme
ay-callbackify
node callbackify promises
Install:
npm install ay-callbackify
Usage Example:
const callbackify = require('ay-callbackify');
const promise = name => new Promise((resolve, reject) => setTimeout(resolve.bind(this, name), 100));
const callback = callbackify(promise);
callback('John Doe', (err, res) => err ? console.log(err) : console.log(res));