Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaoyangnz/yapai
🌹Yet Another Promises/A+ Implementation
https://github.com/chaoyangnz/yapai
promise promise-aplus
Last synced: 3 months ago
JSON representation
🌹Yet Another Promises/A+ Implementation
- Host: GitHub
- URL: https://github.com/chaoyangnz/yapai
- Owner: chaoyangnz
- Created: 2018-07-30T20:35:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T13:52:41.000Z (over 3 years ago)
- Last Synced: 2024-09-15T10:52:48.847Z (4 months ago)
- Topics: promise, promise-aplus
- Language: JavaScript
- Homepage:
- Size: 373 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## YAPAI (Yet Another Promises/A+ Implementation)
![npm](https://img.shields.io/npm/dt/yapai.svg)
![npm](https://img.shields.io/npm/l/yapai.svg)
![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/react.svg)A minimal Promises/A+ complaint `Promise` implementation with 200 lines of code. This implementation is not production ready but for learning the in-depth mechanism of a Promise and its contract to users.
## Install
`npm install yapai --save`
## Build
`npm run build`
## Promises/A+ tests
`npm run test`
Currently this library passed all the test cases of Promises/A+ (https://github.com/promises-aplus/promises-tests).
This is test result:
![](https://i.imgur.com/7ZCgNJX.gif)