Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stream-timeout

tmcw70ISC0.0.0

a stream that sends a timeout when it doesn't receive new data

stream, timeout

readme

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.