SheetJS
e1c9c5e5cd
- normalized crc iteration logic - added browser demo - added command line tool crc32 - 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
614 B
JavaScript
26 lines
614 B
JavaScript
/* crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
|
/* vim: set ts=2: */
|
|
/*exported CRC32 */
|
|
var CRC32;
|
|
/*:: declare var DO_NOT_EXPORT_CRC: any; */
|
|
/*:: declare var define: any; */
|
|
(function (factory) {
|
|
/*jshint ignore:start */
|
|
if(typeof DO_NOT_EXPORT_CRC === 'undefined') {
|
|
if('object' === typeof exports) {
|
|
factory(exports);
|
|
} else if ('function' === typeof define && define.amd) {
|
|
define(function () {
|
|
var module = {};
|
|
factory(module);
|
|
return module;
|
|
});
|
|
} else {
|
|
factory(CRC32 = {});
|
|
}
|
|
} else {
|
|
factory(CRC32 = {});
|
|
}
|
|
/*jshint ignore:end */
|
|
}(function(CRC32) {
|