You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like it should be possible to configure the nested object mapping using the existing header names initialization/configuration of csvtojson without renaming the source header row in the CSV input file.
The text was updated successfully, but these errors were encountered:
@markericson Did you end up finding a solution to this? I'm looking for the same. I tried using on('headers', (headers) => headers.map(transformStuffHere)) but that doesn't appear to affect the actual headers used while processing.
However! This seems to be a little buggy. On a test file with just one row of headers and one row of data, I was seeing both lines logging an index of 0. Adding more rows to my CSV and the issue changed. Could absolutely be user error, but just in case be wary of it mutating your rows
It seems like it should be possible to configure the nested object mapping using the existing header names initialization/configuration of csvtojson without renaming the source header row in the CSV input file.
The text was updated successfully, but these errors were encountered: