# abbott

> Abbott breaks promises. Turns them back into CPS style

Latest version **1.1.3** (published 2015-10-20) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2015-10-20 |
| First published | 2014-11-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Kory Nunn |
| Maintainers | korynunn |

## Links

- npm: https://www.npmjs.com/package/abbott
- Repository: https://github.com/KoryNunn/abbott
- Issues: https://github.com/KoryNunn/abbott/issues
- npm.io page: https://npm.io/package/abbott

## Recent versions

- 1.1.3 (latest) — 2015-10-20
- 1.1.2 — 2014-11-27
- 1.1.1 — 2014-11-26
- 1.1.0 — 2014-11-26
- 1.0.0 — 2014-11-26

## README

# Abbott

Abbott breaks promises. Turns them back into CPS style

## Usage

```javascript
var abbott = require('abbott');

// make a promise
var promise = something();

// break it
var normalAsyncFunction = abbott(somePromise);

// use it
normalAsyncFunction(function(error, data){
    // Welcome back to reality.
});

```

You can also pass a function that returns a promise, and it will give you a nice CPS version:


```javascript
// instead of
somethingThatReturnsAPromise('foo', 'bar').then(successCallback, errorCallback);

// you can do
abbott(somethingThatReturnsAPromise)('foo', 'bar', callback);

```

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