# broken-promise

> Handle promises with plain old callbacks.

Latest version **1.0.1** (published 2014-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install broken-promise
pnpm add broken-promise
yarn add broken-promise
bun add broken-promise
```

## 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.0.1 |
| Published | 2014-11-18 |
| First published | 2014-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Michael Rhodes |
| Maintainers | michaelrhodes |
| Keywords | broken, promises, promise, callback |

## Links

- npm: https://www.npmjs.com/package/broken-promise
- Repository: git@github.com:michaelrhodes/broken-promise
- Homepage: https://github.com/michaelrhodes/broken-promise
- Issues: https://github.com/michaelrhodes/broken-promise/issues
- npm.io page: https://npm.io/package/broken-promise

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2014-11-18
- 1.0.0 — 2014-11-18

## README

# broken-promise
broken-promise lets you handle promises with plain old callbacks.

[![Build status](https://travis-ci.org/michaelrhodes/broken-promise.png?branch=master)](https://travis-ci.org/michaelrhodes/broken-promise)

## install
```sh
$ npm install broken-promise
```

## usage
```js
var Promise = require('promise')
var broken = require('./')

var promise = new Promise(function(resolve, reject) {
  // Do some async-y stuff
  setTimeout(function() {
    Math.round(Math.random()) ?
      resolve('OK') :
      reject('NOT OK')
  }, 100)
})

broken(promise, function(error, value) {
  error ? console.error(error) : console.log(value)
})
```

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