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

1.0.0 • Public • Published

MurmurHash3 32-bit

MurmurHash3 x86 32-bit implemented in JavaScript.

Installation

npm install --save murmur-32

Usage

import murmur32 from 'murmur-32'

murmur32('linus')
//=> ArrayBuffer { 4 }

murmur32(new ArrayBuffer(10))
//=> ArrayBuffer { 4 }

API

murmur32(key)

  • key (ArrayBuffer | string, required)
  • returns ArrayBuffer

Compute the 32-bit MurmurHash3 of the supplied key. If the key is given as a string it will be encoded using the UTF8 encoding.

See also

  • murmur-128 - MurmurHash3 x86 128-bit implemented in JavaScript

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1,143
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1,143
  • 0.2.0
    227,937
  • 0.1.0
    555

Package Sidebar

Install

npm i murmur-32

Weekly Downloads

229,635

Version

1.0.0

License

MIT

Unpacked Size

4.41 kB

Total Files

6

Last publish

Collaborators

  • linusu