Skip to content

Latest commit

 

History

History
76 lines (39 loc) · 1.3 KB

File metadata and controls

76 lines (39 loc) · 1.3 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > Text > readLinesFromIterableAsync

Text.readLinesFromIterableAsync() method

Read lines from an iterable object that returns strings or buffers, and return a generator that produces the lines as strings. The lines will not include the newline characters.

Signature:

static readLinesFromIterableAsync(iterable: AsyncIterable<string | Buffer>, options?: IReadLinesFromIterableOptions): AsyncGenerator<string>;

Parameters

Parameter

Type

Description

iterable

AsyncIterable<string | Buffer>

An iterable object that returns strings or buffers

options

IReadLinesFromIterableOptions

(Optional) Options used when reading the lines from the provided iterable

Returns:

AsyncGenerator<string>