Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via pnpm

json2csv 6.0.0-alpha.2

Convert JSON to CSV
Package summary
Share
0
issues
1
license
4
MIT
Package created
11 May 2012
Version published
21 Jan 2023
Maintainers
4
Total deps
4
Direct deps
3
License
MIT

Issues

0
This package has no issues

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
4 Packages, Including:
@streamparser/json@0.0.6
commander@6.2.1
json2csv@6.0.0-alpha.2
lodash.get@4.4.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

3
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
@streamparser/json0.0.641.17 kBMIT
prod
commander6.2.129.89 kBMIT
prod
lodash.get4.4.27.37 kBMIT
prod

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.