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

jsoncsv

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsoncsv - npm Package Compare versions

Comparing version 0.0.2-2 to 0.0.2-3

11

lib/jsoncsv.js

@@ -15,3 +15,3 @@ (function() {

JsonCsv.prototype.parse = function(data, columns, cb) {
var column, csv, i, index, j, json, line, _i, _j, _len, _len2;
var column, csv, field, i, index, j, json, line, _i, _j, _len, _len2;
if (data == null) return cb('error no data');

@@ -35,8 +35,5 @@ if (columns == null) return cb('error please provide columns as options');

column = columns[_j];
if (json[i][index]["" + column] !== void 0) {
line += json[i][index]["" + column] + ",";
}
if (json[i][index]["" + column] === '' || json[i][index]["" + column] === null) {
line += ",";
}
field = json[i][index]["" + column];
if (field !== void 0) line += field + ",";
if (field === null || field === void 0) line += ",";
}

@@ -43,0 +40,0 @@ } else {

{
"name": "jsoncsv",
"description": "A JSON to csv converter for nodeJS",
"version": "0.0.2-2",
"version": "0.0.2-3",
"homepage": "",

@@ -6,0 +6,0 @@ "author": "Kris Windham <krsiwindham@gmail.com>",

Sorry, the diff of this file is not supported yet

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