then-nodeify
nodeify from then/Promise, all by itself
Last updated 4 years ago by tehshrike .
WTFPL · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install then-nodeify 
SYNC missed versions from official npm registry.

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) {

})

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |