docs.sheetjs.com/docz/static/browserify/xlsxworker.js

13 lines
315 B
JavaScript
Raw Normal View History

2022-08-18 08:41:34 +00:00
/* sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */
2022-07-22 03:26:52 +00:00
var XLSX = require('xlsx');
postMessage({t:"ready"});
onmessage = function (evt) {
var v;
try {
v = XLSX.read(evt.data.d, {type: evt.data.b});
postMessage({t:"xlsx", d:JSON.stringify(v)});
} catch(e) { postMessage({t:"e",d:e.stack||e}); }
};