Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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)