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

xls-to-json

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xls-to-json - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

12

libs/index.js

@@ -5,4 +5,2 @@ const fs = require("fs");

module.exports = XLS_json;
function XLS_json(config, callback) {

@@ -15,3 +13,3 @@ if (!config.input) {

}
const cv = new CV(config, callback);
new CV(config, callback);
}

@@ -23,3 +21,3 @@

const csv = this.csv(ws);
this.cvsjson(csv, config.output, callback, config.rowsToSkip || 0);
this.CSVToJSON(csv, config.output, callback, config.rowsToSkip || 0);
}

@@ -40,3 +38,3 @@

CV.prototype.cvsjson = function (csv, output, callback, rowsToSkip) {
CV.prototype.CSVToJSON = function (csv, output, callback, rowsToSkip) {
let records = [];

@@ -67,3 +65,3 @@ let header = [];

// the 'end' event may fire before the file has been written
if (output !== null) {
if (output) {
var stream = fs.createWriteStream(output, { flags: "w" });

@@ -84,1 +82,3 @@ stream.write(JSON.stringify(records));

// TODO: filter columns with no header: ""
module.exports = XLS_json;
{
"name": "xls-to-json",
"version": "2.0.1",
"version": "2.0.2",
"description": "Converting xls file to json files using nodejs",

@@ -5,0 +5,0 @@ "main": "index.js",

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