# stream-conclusion

> Analyses the contents of a stream and returns the number of chunks and amount of bytes passed

Latest version **0.0.4** (published 2015-10-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install stream-conclusion
pnpm add stream-conclusion
yarn add stream-conclusion
bun add stream-conclusion
```

## 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.4 |
| Published | 2015-10-21 |
| First published | 2015-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | grantila |
| Keywords | stream, count, analyze, end, finish |

## Links

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

## Dependencies (1)

- [through2](https://npm.io/package/through2.md) ^2.0

## 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.0.4 (latest) — 2015-10-21
- 0.0.3 — 2015-05-11
- 0.0.2 — 2015-05-11

## README

# stream-conclusion
Analyses streams to summarize the number of chunks and bytes passed

The given callback will be called when the stream ends, and provides an argument with the properties `chunks` and `bytes`.

Example:
```js
var streamConclusion = require('stream-conclusion');

function conclusion(result) {
  console.log(result.bytes + " bytes passed through in " + result.chunks + " chunks");
}

inStream.pipe(streamConclusion(conclusion)).pipe(outStream);
```

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