🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

csv-to-json

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-to-json

parses csv and returns it into json object

0.1.2
latest
Source
npm
Version published
Weekly downloads
330
-24.49%
Maintainers
1
Weekly downloads
 
Created
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

csv

FAQs

Package last updated on 21 Apr 2015

Did you know?

Socket

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