Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvaldesdeleon/promise-traverse
Promise.all as it should've been
https://github.com/mvaldesdeleon/promise-traverse
Last synced: about 6 hours ago
JSON representation
Promise.all as it should've been
- Host: GitHub
- URL: https://github.com/mvaldesdeleon/promise-traverse
- Owner: mvaldesdeleon
- License: other
- Created: 2017-05-12T16:46:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T12:56:14.000Z (over 7 years ago)
- Last Synced: 2024-11-07T21:20:09.191Z (9 days ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# promise-traverse
`Promise.all` as it should've been.
```JS
var traverse = require('promise-traverse');
var deep = {
name: Promise.resolve('john'),
cats: [
{
color: 'white'
},
{
color: Promise.resolve('black')
}
],
numbers: [1, 13, Promise.resolve(42)]
};traverse(deep).then(console.dir.bind(console));
// Profit
```# install
with [npm](https://npmjs.org) do:```
npm install promise-traverse
```# license
MIT