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
While implementing csv-streamify I found out that there was a strange character (or wrongly encoded file) in the CSV that returned on an dirty column name.
example.csv
weird_char,ok_col,some_emoj🤙
1,1,1
The object returning included the exact same string as in the keys.
{
'weird_char': 1,
ok_col: 1,
'some_emoj🤙': 1
}
My request is to add the ability to map or clean this column names to get a cleaner object, like
While implementing
csv-streamify
I found out that there was a strange character (or wrongly encoded file) in the CSV that returned on an dirty column name.example.csv
The object returning included the exact same string as in the keys.
My request is to add the ability to map or clean this column names to get a cleaner object, like
One solution would be to add a regex replace in https://github.com/klaemo/csv-stream/blob/master/csv-streamify.js#L56, example
A nicer alternative would be to allow to pass a function as value for
columns
The text was updated successfully, but these errors were encountered: