Skip to content

Instantly share code, notes, and snippets.

@rimiti

rimiti/script.js

Created Jun 23, 2020
Embed
What would you like to do?
Stream big csv file
const fs = require('fs');
const csv = require('csvtojson');
const csvStream = fs.createReadStream('./file.csv');
const converter = new csv.Converter({});
converter
.fromStream(csvStream)
.subscribe((row) => {
console.log(row)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.