2024-03-24 21:05:40 -04:00
2024-03-24 21:04:27 -04:00
2022-06-04 13:04:24 -04:00
2022-06-04 13:04:24 -04:00
2022-06-04 13:04:24 -04:00
2024-03-24 21:04:27 -04:00
2022-06-04 12:58:27 -04:00
2024-03-24 21:05:40 -04:00
2024-03-24 21:05:40 -04:00
2022-06-04 15:02:54 -04:00

wakatime

converter-csv-to-json

convert csv file to json from a file in your system using nodejs


how to use

Install the package in the node project

npm i async-convert-csv-to-json
touch index.js

Add the next code in a nodejs file where the csv file is located

const path = require('path')
const converter = require('async-convert-csv-to-json')
const PATH =  path.join(__dirname,)

const filePath = `${PATH}/name_of_your_file.csv`;

async function convert () {
  const jsonConverted = await converter(filePath)
  console.log(jsonConverted)
}

convert()
Description
convert csv file to json
Readme 87 KiB
Languages
JavaScript 100%