Skip to content

zvxayr/rexolve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rexolve

A lightweight Promise.all for Objects

Installation

npm install rexolve --save

API

const rexolve = require('rexolve');

Usage

// Object can be nested with arrays and objects indefinitely
rexolve({
    foo: Promise.resolve('bar')
}).then(result => {
    // result == { foo: 'bar' }
});

// Value caught would be the first error thrown
rexolve({
    foo: Promise.reject('bar')
}).catch(error => {
    // error == 'bar'
});

License

MIT

About

A lightweight Promise.all for Objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published