json-to-csv-in-browser
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -16,3 +16,3 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
_this._headers.forEach(function (head) { | ||
var val = arr[head] === undefined ? "" : arr[head]; | ||
var val = arr[head] == undefined ? "" : arr[head]; | ||
val = val.toString().search(",") >= 0 ? "\"" + val + "\"" : val; | ||
@@ -19,0 +19,0 @@ if (line.length) { |
@@ -15,3 +15,3 @@ "use strict"; | ||
_this._headers.forEach(function (head) { | ||
var val = arr[head] === undefined ? "" : arr[head]; | ||
var val = arr[head] == undefined ? "" : arr[head]; | ||
val = val.toString().search(",") >= 0 ? "\"" + val + "\"" : val; | ||
@@ -18,0 +18,0 @@ if (line.length) { |
{ | ||
"name": "json-to-csv-in-browser", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "This converts the json array in the browser to csv file that can be stored in disc", | ||
@@ -23,3 +23,6 @@ "main": "lib/index.js", | ||
}, | ||
"homepage": "https://github.com/umeshramya/json-to-csv-in-browser#readme" | ||
"homepage": "https://github.com/umeshramya/json-to-csv-in-browser#readme", | ||
"devDependencies": { | ||
"browserify": "^17.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28836
1