Package detail

promise-to-callback

stevemao368.5kMIT1.0.0

Convert promise to callback interface

promise, convert, callback

readme

promise-to-callback Build Status

Convert promise to callback interface

Because there are many promise implementations and callbacks are better to handle errors.

Install

$ npm install --save promise-to-callback

Usage

var promiseToCallback = require('promise-to-callback');

promiseToCallback(promise)(function(err, data) {
    ...
});

License

MIT © Steve Mao