streamify-array
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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.

/streamify-array/

    Package Sidebar

    Install

    npm i streamify-array

    Weekly Downloads

    15,500

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    4.06 kB

    Total Files

    6

    Last publish

    Collaborators

    • rubensworks