feat: lengthMarker option

This commit is contained in:
Johann Schopplich
2025-10-25 19:38:45 +02:00
parent 07feebc3b8
commit 45352879e1
6 changed files with 88 additions and 13 deletions

View File

@@ -24,6 +24,12 @@ export interface EncodeOptions {
* @default DELIMITERS.comma
*/
delimiter?: Delimiter
/**
* Optional marker to prefix array lengths in headers.
* When set to `#`, arrays render as [#N] instead of [N].
* @default false
*/
lengthMarker?: '#' | false
}
export type ResolvedEncodeOptions = Readonly<Required<EncodeOptions>>