This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
stream-array with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Pipe an Array through Node.js Streams. This is rather useful for testing other streams.
var streamify = require('stream-array'), os = require('os'); streamify(['1', '2', '3', os.EOL]).pipe(process.stdout);
var streamify = require('stream-array');
var readable = streamify(['Hello', new Buffer('World')]);
readable(['1', '2', '3', os.EOL]).pipe(process.stdout);
npm install stream-array