Closed Thomathan closed 7 years ago
Thanks for reporting that. Since I haven't worked on this code in a little bit, I looked into it and you're right - the documentation lists trimHeaderValues for csv2json when it should be trimHeaderFields
Looking through the code, I also realized that the trimFieldValues option value was not being copied over so the option was not working properly for json2csv or csv2json. I'll have the updated docs and code for trimFieldValues
released in 2.1.1
shortly.
Thanks again!
Docs say: json2csv uses
trimHeaderFields
csv2json usestrimHeaderValues
Actual code usestrimHeaderFields
Also, the docs say there should be a
trimFieldValues
option but there's no reference to it in the code