beamworks / react-csv-importer

Uploader + CSV parser + raw file preview + UI for custom user column mapping, all in one
https://www.npmjs.com/package/react-csv-importer
MIT License
231 stars 95 forks source link

[Feature Request] Auto Map Column Headers #29

Closed mmmaxi closed 3 years ago

mmmaxi commented 3 years ago

It would be awesome to pass in an input parameter which automatically tries to map column headers to the Importfields based on the string in the import field and column header.

This would increase usability for import files a large amount of columns.

unframework commented 3 years ago

Thanks for the suggestion! Yep this is actually next on my list of ease-of-use improvements. In fact, human-readable label of import field could probably be already used for auto-match (with opt-out just in case). And could even supply a set of hints to try for auto-matching... Coming soon!

unframework commented 3 years ago

Hey, just added this feature in v0.4.0. As I type this, I realize that I should add an opt-out flag for this, but meanwhile I hope this helps!