Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we access fields based on the field name? #16

Closed
ajtruckle opened this issue Jan 5, 2022 · 2 comments
Closed

Can we access fields based on the field name? #16

ajtruckle opened this issue Jan 5, 2022 · 2 comments

Comments

@ajtruckle
Copy link

The first row in my CSV has the headings. Can we access the values based on the headings?

@AriaFallah
Copy link
Owner

AriaFallah commented Jan 6, 2022

No sorry. I intentionally kept the scope of this parser really small so it can stay simple. https://github.com/vincentlaucsb/csv-parser#indexing-by-column-names is a good alternative if you want that feature. If you can't use that library for whatever reason, it shouldn't be too hard to build that feature on top of this library yourself.

@ajtruckle
Copy link
Author

Alright. Thanks for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants