Skip to content

Instantly share code, notes, and snippets.

@vladikoff
Created May 24, 2013 00:09
Show Gist options
  • Save vladikoff/5640448 to your computer and use it in GitHub Desktop.
Save vladikoff/5640448 to your computer and use it in GitHub Desktop.
var csv = require('csv');
var csvFile = 'some.csv';
var records = [];
csv()
.from(csvFile)
.on('record', function (row, index) {
records.push(row);
})
.on('end', function (count) {
// records and stuff
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment