node-csvtojson
node-csvtojson copied to clipboard
csv.fromFile() is returning a promise how to convert it into array
Wait for the promise to resolve and inspect the contents:
csv.fromFile().then((resp) => { console.log(resp); console.log(resp.toString()); });