Function fromNodeStream

  • Creates a new async-iterable from a Node.js stream.

    Parameters

    • stream: ReadableStream

      The Node.js stream to convert to an async-iterable.

    • Optional size: number

      The size of the buffers for the stream.

    Returns AsyncIterable<string | Buffer>

    An async-iterable containing data from the stream either in string or Buffer format.

Generated using TypeDoc