Promise made lazy !
Then install it via npm:
$ npm install --save superlazypromise
Or via bower:
$ bower install --save superlazypromise
const LazyPromise = require('superlazypromise').LazyPromise;
let promise = new LazyPromise((resolve, reject) => {
// stuff
});
promise.then(/* fn */); // <- promise executed here
ISC License. See the LICENSE
file.