a through stream that starts paused and resumes on the next tick
Last updated 5 months ago by leichtgewicht .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install resumer-through2 
SYNC missed versions from official npm registry.


Return a through2 stream that starts out paused and resumes on the next tick, unless somebody called .pause().

This module has the same signature as through2.

browser support


var resumer = require('resumer-through2');
var s = createStream();

function createStream () {
    var stream = resumer();
    stream.push('beep boop\n');
    return stream;
$ node example/resume.js
beep boop


var resumer = require('resumer-through2')

resumer(options, write, flush)

Return a new through2 stream from options, write and end, which default to pass-through .queue() functions if not specified.

The stream starts out paused and will be resumed on the next tick unless you call .pause() first.

options, write and end get passed directly through to through2.


With npm do:

npm install resumer-through2


This source code is based on resumer which does the same job for through as this does of through2.


Current Tags

  • 1.0.0                                ...           latest (5 months ago)

1 Versions

  • 1.0.0                                ...           5 months ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2017 © |