Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

murmur-128

0.1.1 • Public • Published

MurmurHash3 128-bit

MurmurHash3 x86 128-bit implemented in JavaScript.

Installation

npm install --save murmur-128

Usage

const murmur128 = require('murmur-128')
 
murmur128('linus')
//=> ArrayBuffer { 16 }
 
murmur128(new ArrayBuffer(10))
//=> ArrayBuffer { 16 }

API

murmur128(key: ArrayBuffer | string) => ArrayBuffer

Compute the 128-bit MurmurHash3 of the supplied key. If the key is given as string the raw bytes that it occupies will be used.

See also

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

Install

npm i murmur-128

DownloadsWeekly Downloads

12

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar