# cleft

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

Latest version **1.0.0** (published 2016-08-11) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cleft
pnpm add cleft
yarn add cleft
bun add cleft
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-08-11 |
| First published | 2016-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Wang Wenlin |
| Maintainers | soplwang |
| Keywords | callback, continuation |

## Links

- npm: https://www.npmjs.com/package/cleft
- Repository: https://github.com/soplwang/cleftjs
- Homepage: https://github.com/soplwang/cleftjs#readme
- Issues: https://github.com/soplwang/cleftjs/issues
- npm.io page: https://npm.io/package/cleft

## Recent versions

- 1.0.0 (latest) — 2016-08-11

## README

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

Usage:

```
npm i cleft
```

Example:

```javascript
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

---
_Source: https://npm.io/package/cleft · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
