Closed uladkasach closed 2 years ago
No yet, you have to write your own helper see #14 I don't remember why, perhaps to have a very basic behavior
Would you guys be open to someone contributing that behavior? Potentially, with an "option" to look for a header?
Yes it's open, you can make a PR for a new option or a new function. You just have to take care not to change the current API, not to break the unit tests and to check the performance impact.
see https://github.com/Inist-CNRS/node-csv-string#contribution
I love the approach you guys have taken with mimicking the
JSON
api.Do you guys have an option to support using the first row of the input as a "header" and having
parse
return an array of objects instead of an array of arrays?e.g.:
would return