xls-to-json
Advanced tools
Comparing version 0.3.2 to 0.4.0
var fs = require('fs'); | ||
var xlsjs = require('xlsjs'); | ||
var xlsx = require('xlsx'); | ||
var cvcsv = require('csv'); | ||
@@ -27,3 +27,3 @@ | ||
CV.prototype.load_xls = function(input) { | ||
return xlsjs.readFile(input); | ||
return xlsx.readFile(input); | ||
} | ||
@@ -37,3 +37,3 @@ | ||
CV.prototype.csv = function(ws) { | ||
return csv_file = xlsjs.utils.make_csv(ws) | ||
return csv_file = xlsx.utils.make_csv(ws) | ||
} | ||
@@ -76,4 +76,4 @@ | ||
.on('error', function(error){ | ||
console.log(error.message); | ||
callback(error, null); | ||
}); | ||
} |
{ | ||
"name": "xls-to-json", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"description": "Converting xls file to json files using nodejs", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"xlsjs": "0.7.0", | ||
"xlsx": "0.8.0", | ||
"csv": "~0.3.6" | ||
@@ -27,0 +27,0 @@ }, |
@@ -19,4 +19,4 @@ # node-xls-json | ||
input: "sample.xls", // input xls | ||
output: "output.json" // output json | ||
sheet: "sheetname", // specific sheetname | ||
output: "output.json", // output json | ||
sheet: "sheetname" // specific sheetname | ||
}, function(err, result) { | ||
@@ -23,0 +23,0 @@ if(err) { |
124706
+ Addedxlsx@0.8.0
+ Addedjszip@2.4.0(transitive)
+ Addedpako@0.2.9(transitive)
+ Addedxlsx@0.8.0(transitive)
- Removedxlsjs@0.7.0
- Removedxlsjs@0.7.0(transitive)