# promise-settle

> settle([...]) returns a Promise that is fulfilled when all items in the array are either fulfilled or rejected

Latest version **0.3.0** (published 2016-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install promise-settle
pnpm add promise-settle
yarn add promise-settle
bun add promise-settle
```

## 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.3.0 |
| Published | 2016-02-25 |
| First published | 2015-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Patrick Gaubatz |
| Maintainers | pgaubatz |
| Keywords | es6, promise, settle, Promise.settle |

## Links

- npm: https://www.npmjs.com/package/promise-settle
- Repository: https://github.com/pgaubatz/node-promise-settle
- Homepage: https://github.com/pgaubatz/node-promise-settle#readme
- Issues: https://github.com/pgaubatz/node-promise-settle/issues
- npm.io page: https://npm.io/package/promise-settle

## 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

- 0.3.0 (latest) — 2016-02-25
- 0.2.1 — 2015-10-25
- 0.2.0 — 2015-08-12

## README

# promise-settle
[![npm version](https://badge.fury.io/js/promise-settle.svg)](http://badge.fury.io/js/promise-settle)
[![Build Status](https://travis-ci.org/pgaubatz/node-promise-settle.svg?branch=master)](https://travis-ci.org/pgaubatz/node-promise-settle)
[![Coverage Status](https://coveralls.io/repos/pgaubatz/node-promise-settle/badge.svg)](https://coveralls.io/r/pgaubatz/node-promise-settle)
[![Dependency Status](https://david-dm.org/pgaubatz/node-promise-settle.svg)](https://david-dm.org/pgaubatz/node-promise-settle)

settle([...]) returns a Promise that is fulfilled when all items in the array are either fulfilled or rejected.  

## Installation

    npm install --save promise-settle

## Usage
```javascript
var settle = require('promise-settle');

settle([true, Promise.resolve(3), Promise.reject(new Error('error'))])
  .then(function (results) {
    results.forEach(function (result) {
      if (result.isFulfilled()) {
        console.log('Promise is fulfilled', result.value());
      } else {
        console.log('Promise is rejected', result.reason());
      }
    })
  });
```

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