Skip to content

Instantly share code, notes, and snippets.

@beagleknight
Created December 10, 2012 18:19
Show Gist options
  • Save beagleknight/4252287 to your computer and use it in GitHub Desktop.
Save beagleknight/4252287 to your computer and use it in GitHub Desktop.
Script position
var csv = require('csv'),
fs = require('fs');
csv()
.from.stream(fs.createReadStream(__dirname + "/scores.csv"))
.to.path(__dirname + "/scores_with_position.csv")
.transform(function (data, index) {
data.push(index + 1);
return data;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment