Food-Static-Data / Food-Static-Data/food-datasets-csv-parser

`csvToJson` method enhancement

Open
#240 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
9
PR merge metrics
No merged PRs in 30d

Description

should we change `csvToJson` method implementation to except file name and some config, not dirPath and call `parseCsv` method inside it I think it will make sense if we use it like this ex:
`csvToJson('Restaurants.csv')`

and if the user want to add some configuration the call will be like this:
`csvToJson('Restaurants.csv, { split: true, maxEntriesPerFile: 5000 }')`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.