UNPKG

@piadina/fetch-jsonl

Version:

Stream and parse (**JSON Lines**)[https://jsonlines.org/] directly with fetch. Yields parsed JSON objects one line at a time.

7 lines (6 loc) 300 B
export declare class LinesTransformer implements Transformer<Uint8Array, string> { lastString: string; decoder: TextDecoder; transform(chunk: Uint8Array, controller: TransformStreamDefaultController<string>): void; flush(controller: TransformStreamDefaultController<string>): void; }