Skip to content

Instantly share code, notes, and snippets.

@theredpea
Created August 1, 2018 20:25
Show Gist options
  • Save theredpea/d2bf003a757fdb60b2a2f7047920d80e to your computer and use it in GitHub Desktop.
Save theredpea/d2bf003a757fdb60b2a2f7047920d80e to your computer and use it in GitHub Desktop.
// https://github.com/SheetJS/js-xlsx/blob/master/dist/xlsx.js#L20238
// if(typeof exports !== 'undefined') make_xlsx_lib(exports);
// else if(typeof module !== 'undefined' && module.exports) make_xlsx_lib(module.exports);
// else if(typeof define === 'function' && define.amd) define('xlsx', function() { if(!XLSX.version) make_xlsx_lib(XLSX); return XLSX; });
// else make_xlsx_lib(XLSX);
v=0;
if(typeof exports !== 'undefined') v=1;
else if(typeof module !== 'undefined' && module.exports) v=2;
else if(typeof define === 'function' && define.amd) v=3;
else v=4;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment