Skip to content

ketansp/bit-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bit-promise

An extremely lightweight implementation of Promise class without any external dependencies

Features

  • extremely lightweight
  • no external dependencies
  • supports .then, .catch and .finally APIs of the promise class.

To-do

  • support for typescript
  • support for concurrent execution using Promise.all

Installation

npm install bit-promise --save

Usage

const { Promise } = require("bit-promise");


new Promise(function(resolve, reject){
    ...
})
.then(function(){
    return new Promise(function(resolve, reject){
        ...
    });
})
.
.
...
.catch(function(err){
	...
})
.finally(function(){
    ...
})

About

An extremely lightweight implementation of Promise class without any external dependencies

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published