mafintosh / mafintosh/csv-parser

Skip Empty Lines

Open
#230 0 comments 1 reaction 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

### Feature Proposal
An option to skip empty lines and continue processing.

### Feature Use Case
CSV data I am importing has empty lines, which throw a RangeError.
But in the few places they exist, under header and end of files rows it is fine to have.

CSV is exported from bank for account statements, writing a script to import them into Invoice Ninja on a schedule.

Easy to adapt and add as shown in PR.

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

The issue names no files or tests; start by locating the parser entry point and existing handling for empty rows. Verify the requested option against CSV input with empty lines under the header and at the end, and confirm that normal rows still process without a RangeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.