npm

Need private packages and team management tools?Check out npm Orgs. »

cbw

0.0.1 • Public • Published

cbw

Callback wrapper for cleaner async code. Main benefit is you don't need to write if (err) return cb(err).

Usage

var cbw = require('cbw');
 
var doSomething = function(cb) {
  getUsers(cbw(cb)(function(users) {
    getArticles(cbw(cb)(function(articles) {
      cb(null, [users, articles]);
    }));
  }));
};
 

License

MIT

install

npm i cbw

Downloadsweekly downloads

1,712

version

0.0.1

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability