# bity-promise

> Yet another simple promise system for Node - but with timeouts

Latest version **0.0.6** (published 2017-05-15) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-05-15 |
| First published | 2015-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexei White |
| Maintainers | alexei.white |
| Keywords | node, promise, async, timeout |

## Links

- npm: https://www.npmjs.com/package/bity-promise
- npm.io page: https://npm.io/package/bity-promise

## Alternatives

- [@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
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.0.6 (latest) — 2017-05-15
- 0.0.5 — 2017-05-15
- 0.0.4 — 2016-09-22
- 0.0.3 — 2016-09-22
- 0.0.2 — 2015-09-10
- 0.0.1 — 2015-09-10

## README

bity-promise
===================
Super simple promises with timeout expiration for Node
###Installation &nbsp;  [![npm version](https://badge.fury.io/js/bity-promise.svg)](http://badge.fury.io/js/bity-promise)
```sh
npm install bity-promise
```
The constructor takes three arguments, but only the success callback is required:
```javascript
new Promise(successCallback, failCallbackOptional, timoutMSOptional)
```
Three methods are available, `make(name)`, `break(name)`, and `resolve(name)`.
###Simple Usage
```javascript
var promise = require("bity-promise");

var p = new promise(function() {
    console.log("success!");
}, function() {
    console.log("some promises broken");
}, 10000);

p.make("promiseA");
p.make("promiseB");
p.make(["promiseC", "promiseD"]);

p.break("promiseA");
p.resolve("promiseB");
```

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