csvParser(csvData, {columns: true, ltrim: true, rtrim: true code example
Example: csvParser(csvData, {columns: true, ltrim: true, rtrim: true
let csvToJson = require('convert-csv-to-json'); let json = csvToJson.getJsonFromCsv("myInputFile.csv");for(let i=0; i<json.length;i++){ console.log(json[i]);}