# nuo

> :two_hearts: Lightweight promise polyfill. A+ compliant. Implements notify, progress, and finally.

Latest version **1.1.0** (published 2018-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install nuo
pnpm add nuo
yarn add nuo
bun add nuo
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-05-03 |
| First published | 2016-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 20.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | crossjs |
| Maintainers | crossjs, lmm0591 |
| Keywords | promise, promise-polyfill, ES2015, promises-aplus, notify, progress, finally |

## Links

- npm: https://www.npmjs.com/package/nuo
- Repository: https://github.com/crossjs/nuo
- Issues: https://github.com/crossjs/nuo/issues
- npm.io page: https://npm.io/package/nuo

## Dependencies (1)

- [core-js](https://npm.io/package/core-js.md) ^2.5.5

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

- 1.1.0 (latest) — 2018-05-03
- 1.0.5 — 2018-04-19
- 1.0.4 — 2018-04-09
- 1.0.3 — 2018-02-24
- 1.0.2 — 2018-02-24
- 1.0.0 — 2016-10-30
- 0.1.2 — 2016-10-29
- 0.1.1 — 2016-10-16
- 0.1.0 — 2016-10-16
- 0.0.2 — 2016-10-16
- 0.0.1 — 2016-10-15

## README

# 诺（諾）nuò

> :two_hearts: Lightweight ES6 Promise polyfill for the browser and node. Adheres closely to the spec. It is a perfect polyfill IE, Firefox or any other browser that does not support native promises.

[![Travis](https://img.shields.io/travis/crossjs/nuo.svg?style=flat-square)](https://travis-ci.org/crossjs/nuo)
[![Coveralls](https://img.shields.io/coveralls/crossjs/nuo.svg?style=flat-square)](https://coveralls.io/github/crossjs/nuo)
[![dependencies](https://david-dm.org/crossjs/nuo.svg?style=flat-square)](https://david-dm.org/crossjs/nuo)
[![devDependency Status](https://david-dm.org/crossjs/nuo/dev-status.svg?style=flat-square)](https://david-dm.org/crossjs/nuo#info=devDependencies)
[![NPM version](https://img.shields.io/npm/v/nuo.svg?style=flat-square)](https://npmjs.org/package/nuo)

This implementation is based on [taylorhakes/promise-polyfill](https://github.com/taylorhakes/promise-polyfill) and [then/promise](https://github.com/then/promise). It has been changed to use the prototype for performance and memory reasons.

For API information about Promises, please check out this article [HTML5Rocks article](http://www.html5rocks.com/en/tutorials/es6/promises/).

## Changelog

**1.0.0**: should NOT override global promise

## Browser Support

IE8+, Chrome, Firefox, IOS 4+, Safari 5+, Opera

## Usage

```bash
$ npm install nuo --save
```

```js
import Promise from 'nuo'

new Promise((resolve, reject, notify) => {
  // resolve, reject, notify
}).then(value => {
  // do something
}).catch(error => {
  // do something
}).progress(value => {
  // do something
}).finally(() => {
  // do something
})
```

**warning: the non-standard progress and finally are NOT recommended to use, though they are working fine.**

## Testing

```bash
npm install
npm test
```

## License

MIT

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