debugging-stream
Debug streams, by adding latency, speed etc
Last updated 2 years ago by mafintosh .
MIT · Original npm · Tarball · package.json
$ npm install debugging-stream 
SYNC missed versions from official npm registry.

debugging-stream

Stream that helps you debug streams

npm install debugging-stream

Usage

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

Current Tags

  • 3.1.0                                ...           latest (2 years ago)

6 Versions

  • 3.1.0                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 12
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (1)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE