Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parse-csvtojson

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-csvtojson

Convert CSV file to JSON object

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

parse-csvtojson

Package Version [Build Status] PackagePhobia Latest Commit

Stream and CLI to convert CSV to JSON.

Install

Installation of the npm package:

Install globally if you want to use the CLI:

npm install --global parse-csvtojson

Install locally if you want to use it as a library:

npm install --save parse-csvtojson

Usage JSON Object

var csv2json = require("parse-csvtojson");
var fs = require("fs");
csv2json("example.csv", options, function (err, jsonData) {
    if (err) {
        console.error("Error:", err);
    } else {
        result = jsonData;
        console.log(JSON.stringify(jsonData, null, 2));
    }
});

Contributions

Contributions are very welcomed, either on the documentation or on the code.

You may:

  • report any issue you've encountered;
  • fork and create a pull request.

License

Keywords

FAQs

Package last updated on 02 Jan 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc