# stream-counter

> keeps track of how many bytes have been written to a stream

Latest version **1.0.0** (published 2014-05-08) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-05-08 |
| First published | 2013-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/stream-counter) |
| Module format | CommonJS |
| Node | >=0.10.20 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Andrew Kelley |
| Maintainers | superjoe |

## Links

- npm: https://www.npmjs.com/package/stream-counter
- Repository: https://github.com/superjoe30/node-stream-counter
- Issues: https://github.com/superjoe30/node-stream-counter/issues
- npm.io page: https://npm.io/package/stream-counter

## Recent versions

- 1.0.0 (latest) — 2014-05-08
- 0.2.0 — 2013-09-08
- 0.1.0 — 2013-04-05

## README

# stream-counter

Keep track of how many bytes have been written to a stream.

## Usage

```js
var StreamCounter = require('stream-counter');
var counter = new StreamCounter();
counter.on('progress', function() {
  console.log("progress", counter.bytes);
});
fs.createReadStream('foo.txt').pipe(counter);
```

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