baml.csv.writer

A streaming writer to an open file handle.

Reference version

Signature

function baml.csv.writer(
options: baml.csv.WriterOptions | null = …

A streaming writer to an open file handle.

Emits from the file's current cursor and never truncates; use create for a fresh output file. The handle is not adopted, so close() on the writer leaves the file open. Appending to an existing CSV usually also wants write_header: false, since the file already has one.

Throws

  • Error { kind: Options } if options is invalid.

Source:<builtin>/baml/ns_csv/csv.bamlbytes 3819038318