0.1.0 • Published 5 years ago
murmurhash2 v0.1.0
murmurhash2
MurmurHash2 x86 32-bit implemented in TypeScript, with support for Unicode characters.
Install
npm install murmurhash2Usage
import { murmur2 } from 'murmurhash2';
murmur2('Hi there 👋', 12345);Development
Install nodejs and yarn, then:
yarn
yarn run buildTests
The repository contains a couple of sanity tests.
To run the tests:
yarn run testNotes
This implementation is largely inspired by the one from Gary Court: https://github.com/garycourt/murmurhash-js
It uses a TextEncoder to encode the input string as a Uint8Array buffer before performing the calculation.
References
0.1.0
5 years ago