How can I read a local file with Papa Parse?

The File API suggested by papaparse’s docs is meant for browser used. Assuming that you are running this on node at server side, what works for me is leveraging the readable stream: const fs = require(‘fs’); const papa = require(‘papaparse’); const file = fs.createReadStream(‘challenge.csv’); var count = 0; // cache the running count papa.parse(file, { … Read more