Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

TurtleStream

Slow down streams. Useful for simulating limited bandwidth.

Example

var TurtleStream = require('turtlestream')
var http = require('http')
http.createServer(function(req,res){
var turtle = new TurtleStream({ chunkSize: 1, interval: 50 })
req.pipe(turtle).pipe(res)
}).listen(8080)

Test with cURL:

curl --no-buffer -d 'Hello world!' http://localhost:8080

About

Slow down Node.js streams. Useful for simulating limited bandwidth.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages