# promise-all-recursive

> > like `Promise.all()`, but for any type and recursive.

Latest version **1.0.3** (published 2017-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install promise-all-recursive
pnpm add promise-all-recursive
yarn add promise-all-recursive
bun add promise-all-recursive
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-06-21 |
| First published | 2017-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Martin Schuhfuss |
| Maintainers | usefulthink |
| Keywords | promise, all, recursive |

## Links

- npm: https://www.npmjs.com/package/promise-all-recursive
- Repository: https://github.com/usefulthink/promise-all-recursive
- Issues: https://github.com/usefulthink/promise-all-recursive/issues
- npm.io page: https://npm.io/package/promise-all-recursive

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-06-21
- 1.0.2 — 2017-06-21
- 1.0.1 — 2017-06-21
- 1.0.0 — 2017-06-21

## README

# promise-all-recursive

> like `Promise.all()`, but for any type and recursive.

returns a promise that resolves when all promises in a recursive object-structure are resolved.

It doesn't try to do anything with rejected promises, so that is up to you.

## installation

    npm install promise-all-recursive

## usage

```javascript
const promiseAllRecursive = require('promise-all-recursive');

const object = {
    number: 42,
    string: 'something',
    promise: Promise.resolve('this could have been from the network'),
    nested: {
      promise: Promise.resolve('...or the filesystem')
    },
    array: [
      1, 2, Promise.resolve(3)
    ],
    deepNested: [
      { anotherPromise: Promise.resolve('sure!') }
    ]
}

promiseAllRecursive(object)
    .then(result => console.log(result));
```

will print:

```javascript
{
    number: 42,
    string: 'something',
    promise: 'this could have been from the network',
    nested: {
      promise: '...or the filesystem'
    },
    array: [
      1, 2, 3
    ],
    deepNested: [
      { anotherPromise: 'sure!' }
    ]
}
```

see `test/test.js` for more examples.

---
_Source: https://npm.io/package/promise-all-recursive · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
