Bunlong / react-papaparse

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.
https://react-papaparse.js.org
MIT License
363 stars 60 forks source link

Add support for header index #161

Open Jorundur opened 10 months ago

Jorundur commented 10 months ago

Like in this library: https://github.com/iuccio/csvToJson#index-header

Use case: I have a an Excel file where the 2nd row is actually the headers and the 1st row has some random data (I can't control that - I get the file from an external system). And then from row 3 onwards we have the actual data.

It would be good to be able to say "The header is row [index], and data starts below that"

matkoniecz commented 1 month ago

Can you process data before handing it over to parsing?