Installed convert-csv-to-jsonnpm package
Used below line in my code:
csvToJson.generateJsonFileFromCsv(fileInputName,fileOutputName);
giving me an error saying
fs.readFileSync is not a function
Also installed fs npm package having version "fs": "0.0.1-security" but No Luck