1.0.4 • Published 6 years ago

easy-promise-all v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

easy-promise-all

This is a easy implementation of object Promises. With easy-promise-all we can use key-value pair to get result returned by Promise.all(). easy-promise-all uses vanilla java script.

Installation

$ npm install easy-promise-all

Usage

var { EasyPromiseAll } = require('easy-promise-all');

EasyPromiseAll({
    resultFromPromise1: newPromise1(),
    resultFromPromise2: newPromise2(),
  }).then((results) => {
    const { resultFromPromise1, resultFromPromise2 } = results;
    console.log(resultFromPromise1, resultFromPromise2);
  });
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago