promise-to-callback
v1.0.0
Published
Convert promise to callback interface
Downloads
383,259
Readme
promise-to-callback ![Build Status](https://travis-ci.org/stevemao/promise-to-callback.svg?branch=master)
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