bluebird-nodeify

1.1.1 • Public • Published

Nodeify

Use bluebird's promise.nodeify(callback) method as a function to convert non-bluebird promises to node style callbacks.

Installation

$ npm install bluebird-nodeify

Usage

Functional

Call nodeify directly passing the promise, callback and an optional options argument.

var nodeify = require('bluebird-nodeify')
 
function myAsyncMethod(arg, callback) {
  return nodeify(myPromiseMethod(arg), callback)
}

See the bluebird docs for full feature set and supported options like spread.

Package Sidebar

Install

npm i bluebird-nodeify

Weekly Downloads

4

Version

1.1.1

License

MIT

Last publish

Collaborators

  • crabdude