Comparing version 4.0.0 to 4.0.1
{ | ||
"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 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13473
0
235