Created
April 16, 2018 16:08
-
-
Save dentropy/9064e485a4b28c747c0286a8545d2dc5 to your computer and use it in GitHub Desktop.
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 parse = require('csv-parse/lib/sync'); | |
var fs = require('fs'); | |
var RawCSVData = fs.readFileSync('MySpeadsheet.csv', 'utf8'); | |
console.log(RawCSVData);//Print the raw text | |
var records = parse(RawCSVData, {columns: true}); | |
console.log(records);//Print the JSON repersentation os the CSV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment