node-csvtojson icon indicating copy to clipboard operation
node-csvtojson copied to clipboard

Add Support for Skipping Initial Lines in CSV Parsing

Open Sufiyan-kryptos opened this issue 9 months ago • 0 comments

Currently, our CSV parsing using csvtojson does not support skipping initial lines that contain metadata or descriptions before the actual transaction data. Some CSV files include informational headers before the structured data begins, leading to incorrect parsing results.

Proposed Solution :

  • Introduce a configurable option to skip a fixed number of lines before processing the actual data.

Acceptance Criteria :

  • [ ] Add a parameter (e.g., skipLines) to define the number of lines to skip.
  • [ ] Ensure the function correctly handles CSVs with metadata before actual transactions.
  • [ ] Write tests to verify that rows are parsed correctly.

Sufiyan-kryptos avatar Feb 27 '25 10:02 Sufiyan-kryptos