Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been deprecated with the following message: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
Generated on Mar 2, 2024 via pnpm

json2csv 4.3.4

Convert JSON to CSV
Package summary
Share
2
issues
2
high severity
vulnerability
1
meta
1
1
license
5
MIT
Package created
11 May 2012
Version published
11 Feb 2019
Maintainers
4
Total deps
5
Direct deps
4
License
MIT

Issues

2

2 high severity issues

high
Recommendation: None
via: lodash.set@4.3.2
via: json2csv@4.3.4
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
commander@2.20.3
json2csv@4.3.4
jsonparse@1.3.1
lodash.get@4.4.2
lodash.set@4.3.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of json2csv 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
commander2.20.318.26 kBMIT
prod
jsonparse1.3.18.35 kBMIT
prod
lodash.get4.4.27.37 kBMIT
prod
lodash.set4.3.27.86 kBMIT
prod
1

Visualizations

Frequently Asked Questions

What does json2csv do?

json2csv is a powerful JavaScript utility that enables the conversion of JSON data into CSV format. This tool is beneficial for handling and manipulating data, especially in scenarios where CSV files are preferred or specifically required. It should be noted that this package has been abandoned and the code has moved to a new GitHub home: https://github.com/juanjoDiaz/json2csv.

How do you use json2csv?

Using json2csv in your JavaScript projects involves installing and importing required modules from npm libraries. From version 6 onwards, json2csv is broken into smaller libraries including Plainjs, Node, WHATWG, CLI, Transforms, and Formatters, all of which are published to NPM independently. Here's a basic example of how to use the Parser API from the PlainJs library:

const { Parser } = require('@json2csv/plainjs');
const data = [
  {
    fieldA: 'valueA',
    fieldB: 'valueB'
  },
  {
    fieldA: 'valueA1',
    fieldB: 'valueB1'
  }
];

const json2csv = new Parser();
const csv = json2csv.parse(data);
console.log(csv);

In this example, we're creating a new Parser instance from the @json2csv/plainjs package, and using it to convert an array of objects (JSON format) into CSV format.

Where are the json2csv docs?

Documentation for json2csv can be found on the following website: https://juanjodiaz.github.io/json2csv. This documentation provides detailed information and guidelines for effectively using json2csv, including API documentation, installation instructions, and code examples.