csv2json-convertor

1.2.0 • Public • Published

# README #

######CSV2JSON-convertor######

csv2json_convertor is node module to convert csv files to JSON data object

To install:

npm install csv2json-convertor

TO use:

#!javascript

var csv=require('csv2json-convertor');//importing csv2json-convertor

var data1=csv.csvtojson("csv_file.csv"); //csvtojson is function that accepts csv filenames and returns JSON object
console.log(data1);//data1 is variable used to store returning JSON object
console.log(data1[0].key)//where key is the from json key-value format

FYI:

If you find any bugs, you can email me sajanshakya129@gmail.com

Created by Sajan Shakya ;) :) :)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i csv2json-convertor

      Weekly Downloads

      29

      Version

      1.2.0

      License

      ISC

      Last publish

      Collaborators

      • sajanshakya129