]> git.ardis.lu - csvio/commit
Add `useLiteralNames` option to disable column name normalization
authorArdis Lu <ardisglu@gmail.com>
Sat, 12 Jul 2025 05:09:25 +0000 (22:09 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 12 Jul 2025 05:09:25 +0000 (22:09 -0700)
commit5dbe5530e38dc9023af3593d2bdf7ac23f224778
tree63d0ffd9e1aa1b7b5de383163f8b7850a97ed9e8
parentcdd6bd1b62cdc1d0438511109eb9aeabb38593dc
Add `useLiteralNames` option to disable column name normalization

This behavior is useful to preserve data when an input CSV has multiple columns with the same normalized name. By default, `CSVNormalizer` will remove these duplicate columns (the data from the last column is used).

Note that columns with the same *literal* name are still removed even when `useLiteralNames` is `true`. If you need to preserve columns with the same literal name, use a lower-level transformation (e.g., `CSVTransformer`).
src/normalization.js
test/normalization.test.js
This page took 0.037498 seconds and 4 git commands to generate.