Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

promise-to-callback

stevemao500.7kMIT1.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

changelog

1.0.0 (2015-09-03)