streamify-array
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/streamify-array package

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i streamify-array

Weekly Downloads

2,855

Version

1.0.1

License

MIT

Unpacked Size

2.63 kB

Total Files

4

Last publish

Collaborators

  • rubensworks