npm

Need private packages and team management tools?Check out npm Orgs. »

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

19

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability