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
372 stars 62 forks source link

Design More New Templates #21

Open Bunlong opened 4 years ago

pkuppens commented 4 years ago

A template that I'd love is one that allows multiple CSV files. It could be as simple as a CSVReaderList container around the CSVReader, which propagates the functions as properties.


Background information:

The problem I'm facing is that I need to create a D3.js plot for a set of CSV files that are split per ~100kb. So I need some multiple select or even complete directory select. I do not really need to render information on the files, but I do need to process the output.

The resulting state of the CSVReaderList could be a dictionary where key = filename and value = the CSV file.

A nice additional feature: be able to filter out files that are empty, or not recognized as a valid CSV if that is possible.

Bunlong commented 4 years ago

@pkuppens Well, I got it. I'm working on it and I will finish it as soon as possible. I will let you know when it done. Thank you so much!