Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shenfe/promises-aplus

A lightweight implementation of Promises/A+.
https://github.com/shenfe/promises-aplus

promise promise-api promises-aplus

Last synced: about 1 month ago
JSON representation

A lightweight implementation of Promises/A+.

Awesome Lists containing this project

README

        

# promises-aplus


Promises/A+ logo

A lightweight (< 100 LOC in main program) implementation of [Promises/A+](https://promisesaplus.com/) (indexed on 2017/12/23).

## Guide

```bash
$ npm install --save @hengwu/promises-aplus
```

## Implementation

### Prototype Methods

* then
* catch
* done
* finally
* resolve
* reject

### Static Methods

* resolve, resolved
* reject, rejected
* deferred
* all
* race

## Test

```bash
$ npm run test
```

The test suite is provided by [promises-aplus/promises-tests](https://github.com/promises-aplus/promises-tests).

## References

* [https://promisesaplus.com/](https://promisesaplus.com/)
* [https://www.promisejs.org/api/](https://www.promisejs.org/api/)
* [https://github.com/abdulapopoola/Adehun](https://github.com/abdulapopoola/Adehun)

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright © 2017-present, [shenfe](https://github.com/shenfe)