1.0.1 • Published 7 years ago

rexolve v1.0.1

Weekly downloads
3
License
MIT
Repository
-
Last release
7 years ago

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