promise-chain
Chain your promise returns
Promise Chain
A small library that chains your multiple promise to 1
Installation
npm i @makejsgreatagain/promise-chain
Usage
var pChain = new PromiseChain(initialPromise);
pChain.then(firstAsyncMethod)
.catch(firstAsyncExceptionHandler)
.then(secondAsyncMethod)
.catch(secondAsyncExceptionHandler);
Note that each Async method should return new promise.
Tests
npm test
Contributing
Siddhesh Kulkarni