NdjsonParseStream
Defined in: packages/format-ndjson/src/parse-stream.ts:34
Parses a newline-delimited JSON byte stream, emitting one JsonValue per non-empty line.
A malformed or over-long line errors the stream unless NdjsonParseStreamOptions.onError is supplied.
Extends
Section titled “Extends”DecodeStream<JsonValue,string,Uint8Array>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NdjsonParseStream(
maxLineLength,options?):NdjsonParseStream
Defined in: packages/format-ndjson/src/parse-stream.ts:45
Maximum byte length of a single line.
This is a required guard against unbounded memory growth — there is no safe default for all use cases.
Parameters
Section titled “Parameters”maxLineLength
Section titled “maxLineLength”number
options?
Section titled “options?”Returns
Section titled “Returns”NdjsonParseStream
Overrides
Section titled “Overrides”DecodeStream< JsonValue, string, Uint8Array >.constructor
Properties
Section titled “Properties”readable
Section titled “readable”
readonlyreadable:ReadableStream<JsonValue>
Defined in: node_modules/.store/@types-node-npm-26.6.6-a217a0974b/package/stream/web.d.ts:245
Inherited from
Section titled “Inherited from”DecodeStream.readable
writable
Section titled “writable”
readonlywritable:WritableStream<Uint8Array<ArrayBufferLike>>
Defined in: node_modules/.store/@types-node-npm-26.6.6-a217a0974b/package/stream/web.d.ts:246
Inherited from
Section titled “Inherited from”DecodeStream.writable