0.1.2 • Published 7 years ago
promiseext v0.1.2
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.