Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

streamify-array

rubensworks97.3kMIT2.0.0TypeScript support: included

Converts an array into a Node readable stream

array, stream, readable

readme

Streamify Array

npm version

Converts an array into a Node readable stream.

This is a very simple zero-dependency implementation.

Usage

import { streamifyArray } from 'streamify-array';

let stream = streamifyArray([ 'a', 'b', 'c' ]);
stream.on('data', (d) => console.log('Data: ' + d));
stream.on('end', () => console.log('Done!'))

License

This software is written by Ruben Taelman.

This code is released under the MIT license.