react-papaparse is the fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.
Since there's a bug with worker:true and transformHeader I'm forced to use worker:false for readString function.
The type at @types/papaparse for config forces worker to be true for readString function.
Using papaparse package directly instead of react-papaparse allowed me to get the config working with papa.parse function.
Since there's a bug with
worker:true
andtransformHeader
I'm forced to useworker:false
for readString function.The type at @types/papaparse for config forces worker to be true for readString function. Using papaparse package directly instead of react-papaparse allowed me to get the config working with
papa.parse
function.here's the offending line. https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/papaparse/index.d.ts#L276