Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/imtaotao/promise

A basic promise implementation.
https://github.com/imtaotao/promise

promise

Last synced: 7 days ago
JSON representation

A basic promise implementation.

Awesome Lists containing this project

README

        

## Promise/es6
[![NPM version][npm-image]][npm-url]


This `Promise` case is implemented in `es6`, and it is compatible with the native `async/await` function through the official unit test of the promise. This case is for study only, if it is used in a production environment, you can use the files in the `dist` directory.

### test
You can use `npm i` or `yarn` install dependencies, then use `npm run test` or `yarn test` to test.



![test](./test.png)

[npm-url]: https://www.npmjs.com/package/es2015-promise
[npm-image]: https://img.shields.io/npm/v/es2015-promise.svg