stream-array

Pipe an Array through Node.js streams

npm install stream-array
19 downloads in the last day
77 downloads in the last week
548 downloads in the last month

stream-array

Pipe an Array through Node.js streams. This is rather useful for testing other streams.

build status npm version dependencies

Usage

var streamify = require('stream-array'),
    os = require('os');

streamify(['1', '2', '3', os.EOL]).pipe(process.stdout);

API

streamify(Array)

Provide an Array to streamify which will be iterated over. Each element will dequeued and pushed into the following piped stream.

Install

npm install stream-array
npm loves you