8/31/2023 0 Comments Npm csv to json![]() } Generate Object with sub array the above CSV example, to generate a JSON Object with properties that contains sub Array, like the property sons Let json = csvToJson.getJsonFromCsv("myInputFile.csv") ![]() Let fileOutputName = 'myOutputFile.json' ĬsvToJson.generateJsonFileFromCsv(fileInputName,fileOutputName) Generate Array of Object in JSON format let csvToJson = require('convert-csv-to-json') Install package on your machine $ npm install -g convert-csv-to-json Usage Generate JSON file let csvToJson = require('convert-csv-to-json') Install package in your package.json $ npm install convert-csv-to-json -save
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |