Pure calculation modules — checksums and easing functions.
| Module | Returns | Deps | Description |
|---|---|---|---|
| crc32 | Constructor Crc32 |
none | Incremental CRC-32 checksum (polynomial 0xEDB88320) |
| adler32 | Constructor Adler32 |
none | Incremental Adler-32 checksum (RFC 1950) |
| easing | functions object | none | Easing functions for animations |
| bigint | object | none | BigInt helpers (bytes, modPow, isPrime, randomBetween) |
Common pattern (checksums)
const Crc32 = runtime.resolve('crc32');
const checksum = new Crc32();
// Incremental processing
checksum.append(chunk1);
checksum.append(chunk2);
const value = checksum.get(); // unsigned 32-bit integer