@makejsgreatagain/promise-chain

1.1.0 • Public • Published

promise-chain

Chain your promise returns

Build Status

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

Package Sidebar

Install

npm i @makejsgreatagain/promise-chain

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

8.75 kB

Total Files

8

Last publish

Collaborators

  • siddhesh3