llmwire - v2.2.0
    Preparing search index...

    Function streamLines

    • Splits a byte stream (a fetch body, or any async iterable of chunks) into lines. A network chunk rarely ends on a newline, so the tail is carried into the next read; a multi-byte character split across reads is reassembled by the streaming decoder.

      Parameters

      • stream: AsyncIterable<string | Uint8Array>

      Returns AsyncGenerator<string, void, void>