papparse how do I manage errors and retrieve meta information while pipeling?

37 Views Asked by At

I am parsing a CSV file using papparse streaming feature

    import fs from 'node:fs'
    import papa from "papaparse"
    const reader = fs.createReadStream(csvPath)
        .pipe(something)
        .pipe(papa.parse(papa.NODE_STREAM_INPUT, {
            skipEmptyLines: true
        }))
        .pipe(somethingelse)
  • How can I manage parsing errors?
  • How can I retrieve auto-detected linebreak and delimiter properties of meta object?

Thanks

0

There are 0 best solutions below