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

j

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

21

j.js

@@ -38,12 +38,12 @@ /* j -- (C) 2013-2014 SheetJS -- http://sheetjs.com */

function get_columns(sheet, XL) {
var val, rowObject, range, columnHeaders, emptyRow, C;
range = XL.utils.decode_range(sheet["!ref"]);
columnHeaders = [];
for (C = range.s.c; C <= range.e.c; ++C) {
val = sheet[XL.utils.encode_cell({c: C, r: range.s.r})];
function get_cols(sheet, XL) {
var val, r, hdr, R, C, _XL = XL || XLS;
r = _XL.utils.decode_range(sheet["!ref"]);
hdr = [];
for (R = r.s.r, C = r.s.c; C <= r.e.c; ++C) {
val = sheet[_XL.utils.encode_cell({c:C, r:R})];
if(!val) continue;
columnHeaders[C] = XL.utils.format_cell ? XL.utils.format_cell(val) : val.v;
hdr[C] = typeof val.w !== 'undefined' ? val.w : _XL.utils.format_cell ? XL.utils.format_cell(val) : val.v;
}
return columnHeaders;
return hdr;
}

@@ -56,3 +56,3 @@

wb.SheetNames.forEach(function(sheet) {
var cols = get_columns(wb.Sheets[sheet], XL);
var cols = get_cols(wb.Sheets[sheet], XL);
var src = "<h3>" + sheet + "</h3>";

@@ -102,5 +102,6 @@ src += "<table>";

to_json: to_json,
to_html: to_html
to_html: to_html,
get_cols: get_cols
},
version: "XLS " + XLS.version + " ; XLSX " + XLSX.version
};
{
"name": "j",
"version": "0.2.0",
"version": "0.2.1",
"author": "sheetjs",

@@ -14,6 +14,6 @@ "description": "data wrangler",

"dependencies": {
"xlsjs": "",
"xlsx": "",
"xlsjs": "~0.6.5",
"xlsx": "~0.5.0",
"commander":""
}
}
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