forked from sheetjs/sheetjs
SheetJS
f9097d403b
- more structure in the theme parsing - cellDates option on parsing side creates date cells - cellDates option on writing side creates cells with type 'd' - cell types clarified, type 'str' phased out - README clarifications - more tests to ensure date consistency - more test cases for ODS
11 lines
358 B
JavaScript
11 lines
358 B
JavaScript
var get_utils = function() {
|
|
if(typeof XLSX !== 'undefined') return XLSX.utils;
|
|
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; }
|
|
}
|
|
throw new Error("Cannot find XLSX utils");
|
|
};
|