Files
DefinitelyTyped/types/xxhashjs/xxhashjs-tests.ts
2017-08-30 16:56:47 -07:00

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);