SheetJS
b692b3f7df
- simplified utf8 code - added browser demo - added command line tool adler32 - fixed unicode baseline script (node 6 changed default array printing) - fixed performance tests (benchmark module changed behavior) - updated travis versions for test - miscellaneous adjustments to tooling
26 lines
630 B
JavaScript
26 lines
630 B
JavaScript
/* adler32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
|
/* vim: set ts=2: */
|
|
/*exported ADLER32 */
|
|
var ADLER32;
|
|
/*:: declare var DO_NOT_EXPORT_ADLER: any; */
|
|
/*:: declare var define: any; */
|
|
(function (factory) {
|
|
/*jshint ignore:start */
|
|
if(typeof DO_NOT_EXPORT_ADLER === 'undefined') {
|
|
if('object' === typeof exports) {
|
|
factory(exports);
|
|
} else if ('function' === typeof define && define.amd) {
|
|
define(function () {
|
|
var module = {};
|
|
factory(module);
|
|
return module;
|
|
});
|
|
} else {
|
|
factory(ADLER32 = {});
|
|
}
|
|
} else {
|
|
factory(ADLER32 = {});
|
|
}
|
|
/*jshint ignore:end */
|
|
}(function(ADLER32) {
|