The type of the header row.
The output format ('object' or 'array').
ReadonlyassemblerReadonlyreadableThe readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
ReadonlywritableThe writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
A transform stream that converts a stream of tokens into a stream of CSV records.
For most use cases, prefer the factory function createCSVRecordAssemblerTransformer. Use this class directly only when you need a custom assembler implementation.
Param: assembler
A CSVRecordAssembler instance (required). Use createCSVRecordAssembler to create one.
Param: options
Stream-specific options (backpressureCheckInterval, etc.)
Param: writableStrategy
Strategy for the writable side (default:
{ highWaterMark: 1024, size: () => 1 })Param: readableStrategy
Strategy for the readable side (default:
{ highWaterMark: 256, size: () => 1 })See
Choosing the Right API for guidance on selecting the appropriate API level.
Example: Custom assembler implementation