/* The contents of the csv file first slide CSV second slide CSV third slide CSV fourth slide CSV fifth slide CSV sixth slide CSV seventh slide CSV */ //CSV to JSON const csvFilePath="C:\\Users\\SOMEONE\\dev\\pptxGenJS\\slides.csv" const csv=require('csvtojson') let my_csv_object = []; let result = csv({ noheader:true, output: "csv" }) .fromFile(csvFilePath) .then((jsonObj)=>{ console.log(my_csv_object); return jsonObj; }) let csvArray = result //???? console.log(csvArray); I have read documentation. I don't understand how to get the value returned from the result section. Console.log does not display the contents of the CSV.
Submitted January 27, 2020 at 10:51PM by normandantzig
No comments:
Post a Comment