mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
8 lines
219 B
TypeScript
8 lines
219 B
TypeScript
import XXH from 'xxhashjs';
|
|
|
|
// examples adapted from https://github.com/pierrec/js-xxhash
|
|
const h1 = XXH.h32('abcd', 0xABCD).toString(16);
|
|
|
|
const H = XXH.h32(0xABCD);
|
|
const h2 = H.update('abcd').digest().toString(16);
|