@adeira/murmur-hash
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/adeira__murmur-hash package

2.0.1 • Public • Published

Modified MurmurHash algorithm returning base62 of murmur hash. This code was originally taken from Relay utils.

Read more about MurmurHash in this Stack Overflow question: MurmurHash - what is it?

Install

yarn add @adeira/murmur-hash

Optionally, install TS types (Flow types are included by default):

yarn add --dev @types/adeira__murmur-hash

Basic usage

import murmurHash from '@adeira/murmur-hash';

const data = { arg: { count: 20, start: 0, end: 5 } };
const hash = murmurHash(JSON.stringify(data));
console.log(hash); // 4gykY2

Readme

Keywords

none

Package Sidebar

Install

npm i @adeira/murmur-hash

Weekly Downloads

120

Version

2.0.1

License

MIT

Unpacked Size

6.53 kB

Total Files

8

Last publish

Collaborators

  • martin.zlamal
  • adeira-npm-bot