Skip to content

Error in One-Column-File #165

@hackmars-pro

Description

@hackmars-pro

Thank you for good and simple library.

When parsing valid CSV files with only one column, an error is generated. Although the generation is understandable, as no separators are used and can therefore be determined, but it affects the error handling.
It would be desirable not to generate them, or to optionally deactivate them.

const csvData = readString(str, {header: true, skipEmptyLines: 'greedy'})
console.log('csvData', csvData)
return csvData

grafik

example.csv

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