This package has been deprecated

Author message:

Please use promisee instead

cleft

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i cleft

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • soplwang