1.0.1 • Published 6 years ago

streamify-array v1.0.1

Weekly downloads
2,092
License
MIT
Repository
github
Last release
6 years ago

Streamify Array

npm version

Converts an array into a Node readable stream.

This is a very simple zero-dependency implementation.

Usage

const streamifyArray = require('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.