I'm dealing with large 1Gb csv file. I want to parse only a portion of the file, so I passed in the start and end options to createReadStream. When I do that, the csv-parser doesn't parse any rows.
import { createReadStream } from 'fs';
import csv from 'csv-parser';
const rs = createReadStream('xyz.csv', { start: 1000, end: 50000 });
rs.pipe(csv())
.on('data', (row) => {
console.log(row);
});