Skip to content

rschmukler/stream-series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stream-series

Emits events from streams in series.

Example

var series = require('stream-series');
var orderedStream = series(streamA, streamC, streamB);

streamC.end('c');
streamB.end('b');
streamA.end('a');

var writer = es.writeArray(function(err, array) {
  // Array will be ['a', 'c', 'b'] even though streams sent data in reverse order;
});

orderedStream.pipe(writer);

About

Merge streams and emit in order

Resources

Stars

Watchers

Forks

Packages

No packages published