murmurhash2
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

murmurhash2

MurmurHash2 x86 32-bit implemented in TypeScript, with support for Unicode characters.

Install

npm install murmurhash2

Usage

import { murmur2 } from 'murmurhash2';
 
murmur2('Hi there 👋', 12345);

Development

Install nodejs and yarn, then:

yarn
yarn run build

Tests

The repository contains a couple of sanity tests.

To run the tests:

yarn run test

Notes

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0

Package Sidebar

Install

npm i murmurhash2

Weekly Downloads

0

Version

0.1.0

License

BSD-3-Clause

Unpacked Size

7.77 kB

Total Files

5

Last publish

Collaborators

  • jtpio