Miss any of our Open RFC calls?Watch the recordings here! »

murmur-32

0.2.0 • Public • Published

MurmurHash3 32-bit

MurmurHash3 x86 32-bit implemented in JavaScript.

Installation

npm install --save murmur-32

Usage

const murmur32 = require('murmur-32')
 
murmur32('linus')
//=> ArrayBuffer { 4 }
 
murmur32(new ArrayBuffer(10))
//=> ArrayBuffer { 4 }

API

murmur32(key: ArrayBuffer | string) => ArrayBuffer

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

See also

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

Install

npm i murmur-32

DownloadsWeekly Downloads

15,559

Version

0.2.0

License

MIT

Unpacked Size

3.73 kB

Total Files

5

Last publish

Collaborators

  • avatar