# debugging-stream

> Debug streams, by adding latency, speed etc

Latest version **3.1.0** (published 2024-11-17) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2024-11-17 |
| First published | 2022-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/debugging-stream
- npm.io page: https://npm.io/package/debugging-stream

## Dependencies (2)

- [streamx](https://npm.io/package/streamx.md) ^2.20.2
- [fast-fifo](https://npm.io/package/fast-fifo.md) ^1.3.2

## Recent versions

- 3.1.0 (latest) — 2024-11-17
- 3.0.1 — 2024-11-17
- 3.0.0 — 2024-11-17
- 2.0.0 — 2022-04-05
- 1.0.0 — 2022-04-05
- 0.0.0 — 2022-04-05

## README

# debugging-stream

Stream that helps you debug streams

```
npm install debugging-stream
```

## Usage

``` js
const DebuggingStream = require('debugging-stream')

const s = new DebuggingStream(anotherStream, {
  latency: 100, // add between 100ms read/write latency,
  jitter: 10, // add 0-10 ms of jitter to the latency
  speed: 100, // send 100 bytes per sec
  writeSpeed, // same as speed but only affects writes
  readSpeed // same as speed but only affects reads
})
```

## License

MIT

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