stream-timeout

0.0.0 • Public • Published

stream-timeout

build status

A stream that emits a timeout event if there's a large pause after a chunk.

api

var stream = Timeout(delay, opts)
 
stream.on('timeout', function() {
    // too late
});

Delay is same as in setTimeout, opts is given to Stream.Writable.

Readme

Keywords

Package Sidebar

Install

npm i stream-timeout

Weekly Downloads

5

Version

0.0.0

License

ISC

Last publish

Collaborators

  • tmcw