Commit 35d0f68d authored by Mark Stenglein's avatar Mark Stenglein

Add in the data for Spring 2017

parent 734e8a41
This diff is collapsed.
// Read in excel file
if(typeof require !== 'undefined') XLSX = require('xlsx');
// convert file to workbook
var workbook = XLSX.readFile('classes2016f.xlsx');
var workbook = XLSX.readFile('GMU2017SP.xlsx');
// get sheet
var worksheet = workbook.Sheets[workbook.SheetNames[0]];
// convert sheet to JSON
......@@ -105,7 +105,7 @@ try {
result = result.substring(result.indexOf("\n") + 1);
// write a JSON file.
var fs = require('fs');
fs.writeFile('classes2016.json', result, function (err) {
fs.writeFile('classes2017SP.csv', result, function (err) {
if (err) return console.log(err);
console.log('File written to classes2016.json');
});
......
......@@ -10,6 +10,7 @@
"license": "ISC",
"dependencies": {
"express": "^4.14.0",
"json2csv": "^3.7.1",
"xlsx": "^0.8.0"
}
}
This diff is collapsed.
201710,Spring 2017
201670,Fall 2016
201610,Spring 2016
201570,Fall 2015
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment