$ gnpm install iterable-to-stream
Convert iterable objects into node readable streams.
import iterableToStream from 'iterable-to-stream';
iterableToStream(['one', 'two', 'three']).pipe(process.stdout);
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.
This library will be deprecated when Node 12 is deprecated.
Copyright 2013 - present © cnpmjs.org | Home |