feat: add default delimiter map

This commit is contained in:
Johann Schopplich
2025-10-25 09:58:11 +02:00
parent f879f88dff
commit 7d4bb889f5
3 changed files with 26 additions and 3 deletions

View File

@@ -40,3 +40,18 @@ export const CARRIAGE_RETURN = '\r'
export const TAB = '\t'
// #endregion
// #region Delimiters
export const DELIMITERS = {
comma: COMMA as ',',
tab: TAB as '\t',
pipe: PIPE as '|',
} as const
export type DelimiterKey = keyof typeof DELIMITERS
export type Delimiter = typeof DELIMITERS[DelimiterKey]
export const DEFAULT_DELIMITER: Delimiter = DELIMITERS.comma
// #endregion