Comparing version 0.1.0 to 0.1.1
@@ -20,3 +20,3 @@ var Promise = require('node-promise'), | ||
var noop = function () {}; | ||
var noop = function () {}; | ||
@@ -45,4 +45,4 @@ var srcStream = path instanceof require('stream') ? | ||
} else { | ||
entry.on('data', noop); // otherwise unzip.Parse() will hang forever on this entry on some xlsx files | ||
} | ||
entry.on('data', noop); // otherwise unzip.Parse() will hang forever on this entry on some xlsx files | ||
} | ||
}); | ||
@@ -73,3 +73,3 @@ | ||
function extractData(files) { | ||
try{ | ||
try { | ||
var libxmljs = require('libxmljs'), | ||
@@ -76,0 +76,0 @@ sheet = libxmljs.parseXml(files['xl/worksheets/sheet1.xml'].contents), |
{ | ||
"name": "excel", | ||
"version": "0.1.0", | ||
"description": "Web and node.js spreadsheet library. Supports xlsx, csv, tsv (or any simple delimited file) for now.", | ||
"version": "0.1.1", | ||
"description": "Simple NodeJS XLSX parser.", | ||
"main": "excelParser.js", | ||
"contributors": [ | ||
{ "name": "Jake Scott", "email": "scott.iroh@gmail.com" }, | ||
{ "name": "Fabian Tollenaar", "email": "fabian@starting-point.nl" } | ||
{ | ||
"name": "Jake Scott", | ||
"email": "scott.iroh@gmail.com" | ||
}, | ||
{ | ||
"name": "Fabian Tollenaar", | ||
"email": "fabian@starting-point.nl" | ||
} | ||
], | ||
"scripts": { | ||
"test": "mocha --reporter list" | ||
}, | ||
"dependencies": { | ||
"node-promise": "~0.5.3", | ||
"libxmljs": "*", | ||
"libxmljs": "~0.8.1", | ||
"underscore": "~1.3.3", | ||
@@ -17,4 +26,3 @@ "unzip": ">=0.1.8" | ||
"devDependencies": { | ||
"stencil-js": ">= 0.8.4", | ||
"grunt": ">= 0.3.16" | ||
"mocha": "~1.17.1" | ||
}, | ||
@@ -27,3 +35,2 @@ "repository": { | ||
"excel", | ||
"xls", | ||
"xlsx" | ||
@@ -30,0 +37,0 @@ ], |
11
parse.js
var parseXlsx = require('./excelParser.js'); | ||
parseXlsx('/Users/tdixon/Desktop/Test.xlsx', function(err, data) { | ||
console.log(data); | ||
}); | ||
require('fs').readdirSync(__dirname + '/test/spreadsheets').forEach(function(file) { | ||
// if (file != 'empty') return; | ||
file = __dirname + '/test/spreadsheets/' + file; | ||
parseXlsx(file, function(err, data) { | ||
console.log(file); | ||
console.log(err, data); | ||
}); | ||
}); |
@@ -15,13 +15,12 @@ Excel.js | ||
parseXlsx('Spreadsheet.xlsx', function(err, data) { | ||
if(err) throw err; | ||
if(err) throw err; | ||
// data is an array of arrays | ||
}); | ||
Test | ||
===== | ||
Run `npm test` | ||
MIT License. | ||
*Author: Trevor Dixon <trevordixon@gmail.com>* | ||
Contributors: | ||
- Jake Scott <scott.iroh@gmail.com> | ||
- Fabian Tollenaar <fabian@startingpoint.nl> (Just a small contribution, really) | ||
- amakhrov | ||
**Thanks to [all other contributors](https://github.com/trevordixon/excel.js/graphs/contributors).** |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
61951
1
0
8
164
25
+ Addedbindings@1.0.0(transitive)
+ Addedlibxmljs@0.8.1(transitive)
- Removed@mapbox/node-pre-gyp@1.0.11(transitive)
- Removedabbrev@1.1.1(transitive)
- Removedagent-base@6.0.2(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedaproba@2.0.0(transitive)
- Removedare-we-there-yet@2.0.0(transitive)
- Removedbindings@1.3.1(transitive)
- Removedchownr@2.0.0(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddelegates@1.0.0(transitive)
- Removeddetect-libc@2.0.3(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedfs-minipass@2.1.0(transitive)
- Removedgauge@3.0.2(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhttps-proxy-agent@5.0.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedlibxmljs@1.0.11(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedminipass@3.3.65.0.0(transitive)
- Removedminizlib@2.1.2(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedms@2.1.3(transitive)
- Removednan@2.22.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removednopt@5.0.0(transitive)
- Removednpmlog@5.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsemver@6.3.17.6.3(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedtar@6.2.1(transitive)
- Removedtr46@0.0.3(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedyallist@4.0.0(transitive)
Updatedlibxmljs@~0.8.1