New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-csv

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-csv - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "json-csv",
"version": "4.0.0",
"version": "4.0.1",
"description": "Export a richly structured, JSON array to CSV",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/IWSLLC/json-csv",

@@ -111,3 +111,2 @@ json-csv

## Buffered
This method will take an array of data and convert it into a CSV string all in runtime memory. This works well for small amounts of data.

@@ -130,3 +129,2 @@

## Streamed
Here, we want to pipe data from a source to the converter, write the headers and then pipe it to an output (one row at a time). This works really well for large amounts of data like exporting from a MongoDb query directly.

@@ -156,2 +154,3 @@

## Advanced Example
Here, you can see we're using a deeper set of objects for our source data and accomodating by using dot notation in the field definitions.

@@ -188,3 +187,3 @@ ```javascript

{
name: 'contact.company',
name: 'contact.company', // uses dot notation
label: 'Company',

@@ -191,0 +190,0 @@ },

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