Skip to content

vasudevan-palani/promise-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

PromiseExt is a wrapper on top of promise, which will not execute the promise executor until <>.then() is called.

Code Example

PromiseExt = require('promiseext');
var promise = new PromiseExt(function(resolve, reject) {
    resolve({data:'sample'});
});

promise.then(function(resp) {
    console.log("in Then");
}, function(resp) {
    console.log("in Reject");
});


Installation

Step1 :

npm install promiseext

Step2 :

PromiseExt = require('promiseext');

// then start using PromiseExt like Promise

License

MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published