Last active
March 29, 2016 17:28
-
-
Save jcrugzz/639690883721a8b18e65e007207f22c1 to your computer and use it in GitHub Desktop.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String
This file contains 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 fs = require('fs'); | |
var whateverCsv = fs.readFileSync('whatever.csv'); | |
var otherCsv = fs.readFileSync('other.csv'); | |
var lines = content.split('\n'); | |
var columnNamesArray = lines[0].split(','); | |
var firstColumnName = columnNamesArray[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment