Skip to content

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

Notifications You must be signed in to change notification settings

soplwang/cleftjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published