Skip to content

When parsing a CSV that has headers with 2 or more matching names, data is lost #224

@MichaelFoss

Description

@MichaelFoss
  • Operating System: macOS 13.2
  • Node Version: 14.15.4
  • NPM Version: 6.14.0
  • csv-parser Version: 3.0.0

Expected Behavior

The parsed data should be maintained in an array of strings instead of a single string.

Actual Behavior

Only the last read value is maintained.

How Do We Reproduce?

  1. Create a .csv file with at least columns with the same name and one row with different data for each
  2. Try to parse the data without losing data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions