forked from sheetjs/sheetjs
SheetJS
935821423f
- dist scripts properly export library - XLS/XLSB formulae quote sheet names containing spaces - skipHidden ported to streaming CSV write - updated codepage to 1.11.0 - flow and TS updates - webpack demo example using dist scripts - requirejs demo
12 lines
347 B
JavaScript
12 lines
347 B
JavaScript
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
importScripts('core.out.js');
|
|
postMessage({t:"ready"});
|
|
|
|
onmessage = function (oEvent) {
|
|
var v;
|
|
try {
|
|
v = XLSX.read(oEvent.data.d, {type: oEvent.data.b ? 'binary' : 'base64'});
|
|
} catch(e) { postMessage({t:"e",d:e.stack||e}); }
|
|
postMessage({t:"xlsx", d:JSON.stringify(v)});
|
|
};
|