node-csvtojson icon indicating copy to clipboard operation
node-csvtojson copied to clipboard

csv.fromFile() is returning a promise how to convert it into array

Open kohli6010 opened this issue 5 years ago • 1 comments

kohli6010 avatar Jan 17 '20 14:01 kohli6010

Wait for the promise to resolve and inspect the contents:

csv.fromFile().then((resp) => { console.log(resp); console.log(resp.toString()); });

ejwcodes avatar Feb 11 '20 20:02 ejwcodes