promise-props-recursive
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

promise-props-recursive

npm version

Resolve a (potentially) deep structure of promises

Installation

$ npm install --save promise-props-recursive

Usage

var promisePropsRecursive = require('promise-props-recursive')

console.log(
  promisePropsRecursive({
    cats: Promise.resolve(['bamse', 'beans']),
    dogs: {
      schnauzers: Promise.resolve({
        kokos: {
          isSchnauzer: true,
          isCute: Promite.resolve(true),
        },
      }),
      mixed: Promise.resolve('katla'),
    },
  })
)

License

MIT-licensed. See LICENSE.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    729
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.2
    729
  • 2.0.1
    0
  • 2.0.0
    0
  • 1.0.0
    8,985

Package Sidebar

Install

npm i promise-props-recursive

Weekly Downloads

9,714

Version

2.0.2

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • rexxars