node-multistream

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i node-multistream

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • belbis