# pall

> Promise.all with object input.

Latest version **0.0.2** (published 2016-09-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install pall
pnpm add pall
yarn add pall
bun add pall
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-09-20 |
| First published | 2016-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Peter Wegner |
| Maintainers | wunderwegner |
| Keywords | pall, promise, all |

## Links

- npm: https://www.npmjs.com/package/pall
- Repository: https://github.com/Wunderwegner/Pall
- Homepage: https://github.com/Wunderwegner/Pall#readme
- Issues: https://github.com/Wunderwegner/Pall/issues
- npm.io page: https://npm.io/package/pall

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.16.0

## Recent versions

- 0.0.2 (latest) — 2016-09-20
- 0.0.1 — 2016-09-20

## README

# Pall
Your best pall with promises. Module helps you control the Promise.all function by passing object with Promises. 
This is alpha version written in ES6 with Lodash library as a helper and it is design to be used in Node 4+.

# How to install
Just install package with npm:
```
npm install pall
```

...and require it in your project:
```
const Pall = require('pall');
```

# How to use it
The only argument of the function is object of Promises. 

First you need to prepare your promises, ex.:
```
function promiseOne() = {
    return new Promise((resolve, reject) => {
        resolve(...);
        reject(...);
    });
}
```

```
function promiseTwo() = {
    return new Promise((resolve, reject) => {
        resolve(...);
        reject(...);
    });
}
```


Then put these promises into the object:
```
const objectWithPromises = {
    p1: promiseOne(),
    p2: promiseTwo()
}
```

After that just put the object as an argument into Pall function:
```
Pall(objectWithPromises)
```
 
Since Pall under the hood executes simple Promise.all, you can just "then" and "catch" the function:
```
Pall(objectWithPromises)
    .then(resolve => {...})
    .catch(reject => {...});
```    

Resolve returns the very same object which you've passed as an argument, but with resolved promises.

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