Removed some comments.

This commit is contained in:
2022-06-06 20:04:40 -04:00
parent 62de970149
commit 902a2b9f42
3 changed files with 297 additions and 301 deletions

View File

@@ -30,11 +30,10 @@ function processFiles(){
'OwnerPhone'
]
}).fromFile('./data/i96.csv').then((jsonObj) => {
// console.log(jsonObj[4]);
let data = jsonObj.map((x) => {
let y = {};
y['Description Address L Name'] = `${x.PropertyAddress} ${x.City}, ${x.State} ${x.Zip.slice(0, 5)}`;
y['Property Address L Custom Building Address'] = `${x.PropertyAddress} ${x.City}, ${x.State} ${x.Zip.slice(0, 5)}`;
y['Description Address L Name'] = `"${x.PropertyAddress} ${x.City} ${x.State} ${x.Zip.slice(0, 5)}"`;
y['Property Address L Custom Building Address'] = `${x.PropertyAddress} ${x.City} ${x.State} ${x.Zip.slice(0, 5)}`;
y['Property Name L Custom Property Name'] = x.PropertyName;
y['RBA L Custom SF Building'] = x.RBA;
y['Property Address P'] = x.PropertyAddress;
@@ -72,9 +71,6 @@ function processFiles(){
// console.log(csv);
fs.writeFileSync('./data/result.csv', csv);
});
// let file = fs.readFileSync('./data/i96.csv').toString();
// let jsonData = csvToJson().fromString(file);
// console.log(jsonData);
}
processFiles();