Nearly there.

This commit is contained in:
2022-06-09 18:42:57 -04:00
parent 902a2b9f42
commit b8d90287bf
11 changed files with 18900 additions and 382 deletions

View File

@@ -2,10 +2,11 @@ const csvToJson = require('csvtojson');
function processFiles(){
let props = [];
csvToJson().fromFile('./data/i96e.csv').then(jsonObj => {
csvToJson().fromFile('./data/i96tenant.csv').then(jsonObj => {
let keys = Object.keys(jsonObj[0]);
keys.forEach(key => {
props.push(`y['${key}'] =`);
//props.push(`y['${key}'] =`);
props.push(key.replaceAll(' ', ''))
});
console.log(props);
});