Socket
Socket
Sign inDemoInstall

csv2json-convertor

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    csv2json-convertor

node module to convert csv files to JSON data object


Version published
Weekly downloads
69
decreased by-48.51%
Maintainers
1
Install size
4.92 kB
Created
Weekly downloads
 

Readme

Source

# 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 ;) :) :)

Keywords

FAQs

Last updated on 20 Feb 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc