npm.io
2.0.0 • Published 1 year ago

streamify-array

Licence
MIT
Version
2.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0

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.

Keywords