iterable-to-stream

Converts iterable objects into readable streams.

MIT 3 个版本
安装
npm install iterable-to-stream
yarn add iterable-to-stream
pnpm add iterable-to-stream
bun add iterable-to-stream
README

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
版本列表
2.0.0 2021-05-12
1.0.1 2019-05-15
1.0.0 2019-05-15