Removed some comments.
This commit is contained in:
8
index.js
8
index.js
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user