Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dimaamega/js-promise-implementation

implementation of js promises covered by tests
https://github.com/dimaamega/js-promise-implementation

js learning promise tutorial web

Last synced: about 2 months ago
JSON representation

implementation of js promises covered by tests

Awesome Lists containing this project

README

        

[![Node.js CI](https://github.com/DimaAmega/js-promise-implementation/actions/workflows/tests.js.yml/badge.svg)](https://github.com/DimaAmega/js-promise-implementation/actions/workflows/tests.js.yml)
[![codecov](https://codecov.io/gh/DimaAmega/js-promise-implementation/branch/master/graph/badge.svg?token=CN0U5HMU0N)](https://codecov.io/gh/DimaAmega/js-promise-implementation)

[![Open in Codeflow](https://developer.stackblitz.com/img/open_in_codeflow.svg)](https:///pr.new/DimaAmega/js-promise-implementation)

# js-promise-implementation

implementation of promises in js

## Motivation

You can use the tool much better if you know how it works. Because of this, I decided to write a custom implementation of promise. Promise is the most frequently used feature in javascript (i think so)

## Testing
Also, part of tests are being run with [native](./src/factory/index.js#L133) promise implementation. See [here](./package.json#L19)

## Get started
To install deps:
```shell
yarn install
```

Run tests:
```shell
yarn test
```