# end-of-stream-promise

> Await the completion or erroring of a stream

Latest version **1.0.0** (published 2019-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install end-of-stream-promise
pnpm add end-of-stream-promise
yarn add end-of-stream-promise
bun add end-of-stream-promise
```

## 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.0 |
| Published | 2019-09-30 |
| First published | 2019-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | rangermauve |
| Maintainers | rangermauve |
| Keywords | end, stream, promise, await, close, finish |

## Links

- npm: https://www.npmjs.com/package/end-of-stream-promise
- Repository: https://github.com/RangerMauve/end-of-stream-promise
- Homepage: https://github.com/RangerMauve/end-of-stream-promise#readme
- Issues: https://github.com/RangerMauve/end-of-stream-promise/issues
- npm.io page: https://npm.io/package/end-of-stream-promise

## Dependencies (1)

- [end-of-stream](https://npm.io/package/end-of-stream.md) ^1.4.4

## 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.0 (latest) — 2019-09-30

## README

# end-of-stream-promise
Await the completion or erroring of a stream

```
npm i -s end-of-stream-promise
```

```js
const eosp = require('end-of-stream-promise')

const stream = getSomeStream()

try {
  await eosp(stream)
} catch(e) {
  console.log('Stream had an error!')
}
```

Check out the [end-of-stream](https://github.com/mafintosh/end-of-stream) docs for more options.

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