mafintosh / mafintosh/csv-parser
Read csv with multiple line breaks (\r, \n, \r\n)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
* Operating System: Linux
* Node Version: v10.16.3
* NPM Version: 6.9.0
* csv-parser Version: csv-parser@3.0.0
### Feature Proposal
I'm expecting to read csv files irrespective of different types of line breaks. But It is taking only one. I want to give newline option value as ['\n', \r', '\r\n'](Array) instead of '\n' (String).
### Feature Use Case
newline: ['\r', '\n', '\r\n']
Thanks,
Chikku
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating csv-parser's handling of the newline option and its existing tests. Reproduce parsing with \r, \n, and \r\n, then verify that the requested array form accepts all three line-break styles without regressing the current string option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100