mafintosh / mafintosh/csv-parser

Read csv with multiple line breaks (\r, \n, \r\n)

Open
#201 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.