Socket
Socket
Sign inDemoInstall

json-2-csv

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-2-csv - npm Package Compare versions

Comparing version 3.5.4 to 3.5.5

2

package.json

@@ -8,3 +8,3 @@ {

"description": "A JSON to CSV and CSV to JSON converter that natively supports sub-documents and auto-generates the CSV heading.",
"version": "3.5.4",
"version": "3.5.5",
"repository": {

@@ -11,0 +11,0 @@ "type": "git",

@@ -144,2 +144,3 @@ # json-2-csv

-E, --empty-field-value <value> Empty field value
-A, --expand-array-objects Expand array objects
-k, --keys [keys] Keys of documents to convert to CSV

@@ -146,0 +147,0 @@ -h, --help output usage information

@@ -239,3 +239,3 @@ 'use strict';

function recordFieldValueToString(fieldValue) {
if (_.isArray(fieldValue) || _.isObject(fieldValue)) {
if (_.isArray(fieldValue) || _.isObject(fieldValue) && !_.isDate(fieldValue)) {
return JSON.stringify(fieldValue);

@@ -242,0 +242,0 @@ } else if (_.isUndefined(fieldValue)) {

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