Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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+.
- Host: GitHub
- URL: https://github.com/shenfe/promises-aplus
- Owner: shenfe
- License: mit
- Created: 2017-12-20T15:35:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-23T03:12:58.000Z (almost 7 years ago)
- Last Synced: 2024-11-09T03:09:04.805Z (about 2 months ago)
- Topics: promise, promise-api, promises-aplus
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# promises-aplus
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)