pause

Pause a stream's data events

pause

Pause a stream's data events

$ npm install pause
var pause = require('pause')

Pause the data events on a stream and return a handle to resume or end the stream.

Dispose of the handle. This does not end the stream, but it simply discards the event collection, making handle.resume() a no-op.

Resume the stream by re-emitting all the data events in the same order, followed by an end event, if that was emitting during the pause.

MIT