then-nodeify

nodeify from then/Promise, all by itself

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
then-nodeify
1.0.16 years ago7 years agoMinified + gzip package size for then-nodeify in KB

Readme

Copied straight from https://github.com/then/promise/blob/master/src/node-extensions.js but without anything else attached.
Build Status
Converts a function that returns a promise into one that calls an error-first callback when the promise is resolved.
var nodeify = require('nodeify')

var doThing = nodeify(functionThatReturnsAPromise)

doThing('/tmp/butts', function(err, results) {

})