Skip to content

printNdjsonLine

printNdjsonLine(value, options?): string

Defined in: packages/format-ndjson/src/ndjson-line-encoder.ts:16

Serializes one value to its LF-terminated NDJSON line.

The single implementation of the NDJSON write grammar: printNdjson and createNdjsonLineEncoder are both built on this.

JsonValue

NdjsonLineEncoderOptions

string