0.1.1 • Published 9 years ago

node-multistream v0.1.1

Weekly downloads
9
License
-
Repository
-
Last release
9 years ago

a read stream that can add multiple streams/strings

NPM Version

Gitter chat

Build Status Coverage Status Dependency Status

Installing

To install the latest release with npm run:

npm install multi-stream

to install the development version from github run:

npm install "git+https://github.com/belbis/multi-stream"

Introduction

Multi-Stream is a stream library that allows for multiple streams to be read as one.

Usage

MultiStream works with any stream, but also with strings

// standard imports
var stream = require("stream");

// npm imports
var MS = require("node-multistream");

var ms = new MS();

// set up simple readable streams
var foo = new stream.Readable();
foo._read = function(){this.push("foo");this.push(null);};

ms.add(foo);

// show output
ms.pipe(process.stdout);

Future

chunked data reads

allow for silent fail