mholt / PapaParse

Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
http://PapaParse.com
MIT License
12.5k stars 1.15k forks source link

add columns infered types into meta field #773

Open ghost opened 4 years ago

ghost commented 4 years ago

all in title.

pokoli commented 4 years ago

Could you provide a more detailed explanation (with examples) and a describite about your issue? Is it a bug? Is a feature request?

ghost commented 4 years ago

Hi, after loading a csv file, I want to have direct access of different inferred types of columns, it could be I think easily stored in meta field. It is a feature request. As an example, any file can be as input. Many thanks.

demetris-manikas commented 4 years ago

Hi. Dynamic typing is applied on a per field basis which looks proper since there is no specification that cvs columns should be of the same type. As a workaround if I you are confident that your file behaves like that, then just parse the first line to figure out the types and then go ahead to parse the whole file. Hope this helps.