0.0.1 • Published 8 years ago
node-cb v0.0.1
node cb
Convert a function that takes two callbacks for success and error to a function that takes a single node style callback.
example
var wrap = require('node-cb');
function example(success, err) {}
var wrapped = wrap(example);
wrapped(function(err, res) {});