# promise.hash.helper

> ![CI](https://github.com/stefanpenner/promise.hash.helper/workflows/CI/badge.svg)

Latest version **1.0.8** (published 2021-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install promise.hash.helper
pnpm add promise.hash.helper
yarn add promise.hash.helper
bun add promise.hash.helper
```

## 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.8 |
| Published | 2021-08-30 |
| First published | 2020-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 10.* \|\| >= 12.* |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | stefanpenner |

## Links

- npm: https://www.npmjs.com/package/promise.hash.helper
- Repository: https://github.com/stefanpenner/promise.hash.helper
- Homepage: https://github.com/stefanpenner/promise.hash.helper#readme
- Issues: https://github.com/stefanpenner/promise.hash.helper/issues
- npm.io page: https://npm.io/package/promise.hash.helper

## Recent versions

- 1.0.8 (latest) — 2021-08-30
- 1.0.7 — 2020-03-15
- 1.0.6 — 2020-03-14
- 1.0.5 — 2020-02-29
- 1.0.4 — 2020-02-14
- 1.0.3 — 2020-02-14
- 1.0.2 — 2020-02-14
- 1.0.1 — 2020-02-14
- 1.0.0 — 2020-02-14

## README

# promise.hash.helper
![CI](https://github.com/stefanpenner/promise.hash.helper/workflows/CI/badge.svg)

Inspired by `Promise.all` but rather then consuming an array it takes an object as input, and "resolves" that objects values.

## Install

```sh
yarn add promise.hash.helper
```

or

```sh
npm install --save promise.hash.helper
```

## Usage

```js
const hash = require('promise.hash.helper');

let promises = {
  myPromise: resolve(1),
  yourPromise: resolve(2),
  theirPromise: resolve(3),
  notAPromise: 4
};

hash(promises).then(object => {
  // object here is an object that looks like:
  // {
  //   myPromise: 1,
  //   yourPromise: 2,
  //   theirPromise: 3,
  //   notAPromise: 4
  // }
});
```

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