# @nathanfaucett/promise_polyfill

> Promise polyfill for the browser and node.js

Latest version **0.0.4** (published 2016-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nathanfaucett/promise_polyfill
pnpm add @nathanfaucett/promise_polyfill
yarn add @nathanfaucett/promise_polyfill
bun add @nathanfaucett/promise_polyfill
```

## 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.4 |
| Published | 2016-10-05 |
| First published | 2016-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nathan Faucett |
| Maintainers | nathanfaucett |
| Keywords | promise, promise.js, promise_polyfill, promise_polyfill.js |

## Links

- npm: https://www.npmjs.com/package/@nathanfaucett/promise_polyfill
- Repository: https://github.com/nathanfaucett/promise_polyfill
- Homepage: https://github.com/nathanfaucett/promise_polyfill#readme
- Issues: https://github.com/nathanfaucett/promise_polyfill/issues
- npm.io page: https://npm.io/package/@nathanfaucett/promise_polyfill

## Dependencies (8)

- [@nathanfaucett/apply](https://npm.io/package/@nathanfaucett/apply.md) 0.0.1
- [@nathanfaucett/is_null](https://npm.io/package/@nathanfaucett/is_null.md) ^0.0.1
- [@nathanfaucett/is_array](https://npm.io/package/@nathanfaucett/is_array.md) ^0.0.1
- [@nathanfaucett/iterator](https://npm.io/package/@nathanfaucett/iterator.md) ^0.0.2
- [@nathanfaucett/is_object](https://npm.io/package/@nathanfaucett/is_object.md) ^0.0.1
- [@nathanfaucett/fast_slice](https://npm.io/package/@nathanfaucett/fast_slice.md) ^0.0.1
- [@nathanfaucett/is_function](https://npm.io/package/@nathanfaucett/is_function.md) ^0.0.1
- [@nathanfaucett/weak_map_polyfill](https://npm.io/package/@nathanfaucett/weak_map_polyfill.md) ^0.0.2

## 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

- 0.0.4 (latest) — 2016-10-05
- 0.0.3 — 2016-08-24
- 0.0.2 — 2016-08-20
- 0.0.1 — 2016-07-14

## README

Promise
=======

Promise polyfill for the browser and node.js


```javascript
var Promise = require("@nathanfaucett/promise_polyfill");


new Promise(function resolver(resolve, reject) {
    if (value) {
        resolve(true);
    } else {
        reject(false);
    }
}).then(
    function success(value) {
        return value;
    },
    function error(value) {
        return value;
    }
);
````

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