# bd-promise

> JS6 Promise with timeouts and other extra features

Latest version **2.2.1** (published 2020-02-25) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install bd-promise
pnpm add bd-promise
yarn add bd-promise
bun add bd-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 | 2.2.1 |
| Published | 2020-02-25 |
| First published | 2018-06-07 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rawld Gill |
| Maintainers | rcgill |
| Keywords | JavaScript, bd-promise, backdraft, promise |

## Links

- npm: https://www.npmjs.com/package/bd-promise
- Repository: https://github.com/altoviso/bd-promise
- Homepage: http://github.com/altoviso/bd-promise
- Issues: http://github.com/altoviso/bd-promise/issues
- npm.io page: https://npm.io/package/bd-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

- 2.2.1 (latest) — 2020-02-25
- 2.2.0 — 2019-08-20
- 2.1.0 — 2018-10-09
- 2.0.3 — 2018-06-07
- 2.0.2 — 2018-06-07

## README

# bd-promise
### JS6 Promises with Timeouts and Other Extra Features 

FOSS software contributed by ALTOVISO ([http://www.altoviso.com](http://www.altoviso.com/)).


# Features

* Constructor includes optional timeout argument (in ms) to say the promise should cancel after that time has expired, e.g.:

 ```let p = new Promise(500, executor);```

* ```resolve(result)```, ```reject(error)```, and ```cancel(reason)``` methods

* ```resolved```, ```rejected```, and ```canceled``` getters

* ```result```, ```error```, and ```cancelReason``` getters


## Installation

With `npm`:

```
npm install bd-promise
```

With `yarn`:

```
yarn add bd-promise
```

With `bower`:

```
bower install --save bd-promise
```

## Tests

Serve the root directory then point a browser to test/index.html.

## License

bd-promise is free and open source software available under a BSD-3-Clause license.

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