node-cb

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i node-cb

Weekly Downloads

4

Version

0.0.1

License

ISC

Last publish

Collaborators

  • nichoth