streamToLines
streamToLines(
stream):AsyncGenerator<string,void,undefined>
Defined in: streaming.ts:959
Convert an IR stream to a line-by-line iterator. Buffers content and yields complete lines.
Parameters
Section titled “Parameters”stream
Section titled “stream”Returns
Section titled “Returns”AsyncGenerator<string, void, undefined>
Example
Section titled “Example”for await (const line of streamToLines(stream)) { console.log('Line:', line);}