# is-stream-ended

> Check if a stream has ended

Latest version **0.1.4** (published 2018-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-stream-ended
pnpm add is-stream-ended
yarn add is-stream-ended
bun add is-stream-ended
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2018-04-01 |
| First published | 2015-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Stephen Sawchuk |
| Maintainers | stephenplusplus |
| Keywords | stream, end, ended, consumed, complete |

## Links

- npm: https://www.npmjs.com/package/is-stream-ended
- Repository: https://github.com/stephenplusplus/is-stream-ended
- Homepage: https://github.com/stephenplusplus/is-stream-ended#readme
- Issues: https://github.com/stephenplusplus/is-stream-ended/issues
- npm.io page: https://npm.io/package/is-stream-ended

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2018-04-01
- 0.1.3 — 2017-05-05
- 0.1.2 — 2017-05-04
- 0.1.1 — 2017-05-04
- 0.1.0 — 2015-07-30

## README

# is-stream-ended
> Check if a stream has ended.

```sh
$ npm install --save is-stream-ended
```
```js
var isStreamEnded = require('is-stream-ended');

isStreamEnded(stream); // false
stream.end();
isStreamEnded(stream); // true
```

### isStreamEnded(stream)

#### stream

- Type: `Stream`, `Object`

Providing a stream will check against the `stream._readableState` object. To check from the `_writableState`, provide that object directly.

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