Skip to main content

Function.normalizeCsvHeader

function normalizeCsvHeader(name: string): string;

Canonical form of one CSV header cell: lowercased, diacritics stripped (NFD), everything but ASCII letters and digits dropped. Same spirit as the mapping suggestion's normalizeLabel (kept separate on purpose: that one feeds alias matching and is free to evolve; this one defines a persisted identity and must stay stable).

Parameters

ParameterType
namestring

Returns

string