# a-promise

> A lightweight Promise implementation in NodeJS

Latest version **1.0.0** (published 2015-06-09) · MIT license · 0 weekly downloads

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

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-06-09 |
| First published | 2015-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | steelbrain |
| Maintainers | steelbrain |
| Keywords | promise, es6, async, flow-control |

## Links

- npm: https://www.npmjs.com/package/a-promise
- Repository: https://github.com/steelbrain/a-promise
- Issues: https://github.com/steelbrain/a-promise/issues
- npm.io page: https://npm.io/package/a-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.0 (latest) — 2015-06-09
- 0.2.1 — 2015-06-06
- 0.2.0 — 2015-06-06
- 0.1.2 — 2015-04-16
- 0.1.1 — 2015-03-28
- 0.1.0 — 2015-03-28
- 0.0.13 — 2015-03-12
- 0.0.12 — 2015-03-12
- 0.0.11 — 2015-03-12
- 0.0.10 — 2015-03-12
- 0.0.9 — 2015-02-23
- 0.0.8 — 2015-02-23
- 0.0.7 — 2015-02-22
- 0.0.6 — 2015-02-20
- 0.0.5 — 2015-02-20
- … 4 more at https://npm.io/package/a-promise/versions

## README

A Promise
=========

An extremely lightweight Promise Polyfill for Node and Browsers. It doesn't support all the features yet, but It supports what a normal person needs to keep the code clean.
If you need something added, just open an issue.

### Installation
```
npm install a-promise
```

### Example

In case you don't know what Promises are, then this example should give you a basic intro.
```js
function MyFunction(Num){
  return new Promise(function(Resolve, Reject){
    // Do something asyncly
    Resolve(Num * 100);
  });
}
MyFunction(5).then(function(Result){
  console.log(Result); // Outputs 500
});
```

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