Open moonthug opened 6 years ago
Thanks! We have a plan to support column types (numbers, dates, strings, lat-lngs, etc) so this fits nicely with that. We hadn't thought about custom parsers but it's a cool idea so we'll definitely give it some thought. Thanks again :-)
I think some of the custom 'parser's I mentioned are probably better considered 'formatter's that would happen after the initial parser function. So maybe another property on the config.
Anyway, great!
At the moment all CSV data is added to the main
data
object as a string. The means that you either have to convert them all to ints, floats etc up front or later when you need to use them.It would be great if you could specify a column or column range formatter.
Straight forward parseInt-ing.
Custom functions that can be specified in the template.
Chaining parsers together with arguments