• Chunks to lines via async iterable

    Can be used for

    • native Node.js streams
    • web streams (Node’s or making them iterable via a helper)
      • for web streams, you can also use ChunksToLinesTransformer

    Parameters

    • chunkIterable: Iterable<string> | AsyncIterable<string>

      An asynchronous or synchronous iterable over “chunks” (arbitrary strings)

    Returns AsyncIterable<string>

    An asynchronous iterable over “lines” (strings with at most one newline that always appears at the end)