$ cnpm install murmur-32
MurmurHash3 x86 32-bit implemented in JavaScript.
npm install --save murmur-32
import murmur32 from 'murmur-32'
murmur32('linus')
//=> ArrayBuffer { 4 }
murmur32(new ArrayBuffer(10))
//=> ArrayBuffer { 4 }
murmur32(key)key (ArrayBuffer | string, required)ArrayBufferCompute the 32-bit MurmurHash3 of the supplied key. If the key is given as a string it will be encoded using the UTF8 encoding.
Copyright 2013 - present © cnpmjs.org | Home |