2014-10-10 02:22:38 +00:00
|
|
|
var get_utils = function() {
|
|
|
|
if(typeof XLSX !== 'undefined') return XLSX.utils;
|
2014-10-26 05:26:18 +00:00
|
|
|
if(typeof module !== "undefined" && typeof require !== 'undefined') try {
|
|
|
|
return require('../' + 'xlsx').utils;
|
|
|
|
} catch(e) {
|
|
|
|
try { return require('./' + 'xlsx').utils; }
|
|
|
|
catch(ee) { return require('xl' + 'sx').utils; }
|
|
|
|
}
|
2014-10-10 02:22:38 +00:00
|
|
|
throw new Error("Cannot find XLSX utils");
|
|
|
|
};
|