Need private packages and team management tools?Check out npm Teams »

promise-to-callback

1.0.0 • Public • Published

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

Install

npm i promise-to-callback

DownloadsWeekly Downloads

34,061

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar