Created
May 24, 2013 00:09
-
-
Save vladikoff/5640448 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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