npm.io
1.0.0 • Published 10 years ago

cleft

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

cleft.js, Combine stand-alone error and success continuation into node.js style callback.

Usage:

npm i cleft

Example:

const then = require('cleft').then;

redis.get('key', then(err, data => console.log(data)));
redis.get('key2', then(err, data => console.log(data)));
redis.get('key3', then(err, data => console.log(data)));

function err(e) {
  console.error(e);
}

LICENSE: MIT

Keywords