Skip to content

createLineEncoder

createLineEncoder(encoding, options?): Encoder<string>

Defined in: packages/format-core/src/codecs/line-encoder.ts:17

Creates the write half of CRLF line framing: each value is emitted with a \r\n terminator.

A factory rather than a class because nothing here changes after construction — unlike LineDecoder, which carries a scan position across partial lines.

TextEncodingName

LineEncoderOptions

Encoder<string>