sheetjs/odsbits/10_utils.js
SheetJS 3d1f0f79ca version bump 0.8.7: bundlers
demos for browserify/requirejs/webpack
2017-03-04 20:14:08 -05:00

11 lines
326 B
JavaScript

/*:: declare var XLSX: any; */
var get_utils = function() {
if(typeof XLSX !== 'undefined') return XLSX.utils;
if(typeof module !== "undefined" && typeof require !== 'undefined') try {
return require('../xlsx.js').utils;
} catch(e) {
return require('./xlsx.js').utils;
}
throw new Error("Cannot find XLSX utils");
};