1.5.0 • Published 2 months ago

async-convert-csv-to-json v1.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

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()
1.4.2

2 months ago

1.5.0

2 months ago

1.4.1

2 years ago

1.4.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago