Socket
Socket
Sign inDemoInstall

csv-to-json

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    csv-to-json

parses csv and returns it into json object


Version published
Weekly downloads
210
increased by34.62%
Maintainers
1
Install size
49.4 kB
Created
Weekly downloads
 

Readme

Source

##csv-to-json NPM Version Downloads Dependencies Build Status Coverage Status

Converts your csv into json structure

##Usage

var csv = require('csv-to-json');

###.parse(obj, callback); Parses the csv and returns it in JSON format Expected parameters of

var obj = {
    filename: PATH_TO_FILE
};
var callback = function(err, json) {
    // Do something
};

###.writeJsonToFile(obj, callback) Writes JSON to file

var obj = {
    filename: PATH_TO_FILE,
    json: JSON_OBJECT
};

var callback = function(err) {
    // Do something
};

###Test npm test

Keywords

FAQs

Last updated on 21 Apr 2015

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