Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

csvtojson

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csvtojson - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

2

libs/core/parser.js

@@ -37,3 +37,3 @@ var explicitTypes = ["number", "string"];

return true;
} else if (trimed[0] === "{" && trimed[trimed.length - 1] === "}") {
} else if (trimed[0] === "{" && trimed[trimed.length - 1] === "}" || trimed[0] === "[" && trimed[trimed.length - 1]==="]") {
try {

@@ -40,0 +40,0 @@ return JSON.parse(trimed);

@@ -21,3 +21,3 @@ {

],
"version": "0.5.2",
"version": "0.5.3",
"keywords": [

@@ -27,6 +27,7 @@ "csv",

"json",
"convert",
"parser",
"exntendible",
"plugin"
"csv to json",
"csv convert",
"tojson",
"convert csv to json",
"csv-json"
],

@@ -33,0 +34,0 @@ "bin": {

@@ -200,2 +200,3 @@ var Converter = require("../libs/core/Converter.js");

assert(d.column10[1]===31);
assert(d.column11[0].hello==="world");
assert(d["name#!"]==="sss");

@@ -202,0 +203,0 @@ });

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