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

excel

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

excel - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

test/spreadsheets/excel_mac_2011-basic.xlsx

8

excelParser.js

@@ -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 @@ ],

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

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