iterable-to-stream
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

iterable-to-stream

Convert iterable objects into node readable streams.

import iterableToStream from 'iterable-to-stream';

iterableToStream(['one', 'two', 'three']).pipe(process.stdout);

Note

With version 10, Node introduced stream.Readable.from which converts an iterator to a stream.

This library will use the Node version if it is available.

Notice of Deprecation

This library will be deprecated when Node 12 is deprecated.

Supported Node Versions

  • 12.x, 14.x, 15.x
  • Unsupported, but should still work: 8.x, 10.x

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i iterable-to-stream

    Weekly Downloads

    21,866

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    8.04 kB

    Total Files

    8

    Last publish

    Collaborators

    • jason-dent