1.0.2 • Published 8 years ago

nodeify-promise v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

nodeify-promise

Notifies a node callback when a Promise has resolved or rejected

var nodeify = require('nodeify-promise');

nodeify(cb, Promise.resolve('yes'));
nodeify(cb).when(Promise.reject('nope'));

cb would represent a node-style callback, eg: function(err, data)

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago