Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

murmur2js

lelandrichardson10.2kMIT1.0.0

An optimized JavaScript implementation of the MurmurHash algorithm.

readme

murmur2js

An optimized and minimal JavaScript implementation of the MurmurHash 2 algorithm.

This implementation has been largely taken from Gary Court's implementation and this was mostly just done to put this implementation on NPM.

Installation

npm i --save murmur2js

Usage

var murmurHash = require('murmur2js');
console.log(murmurHash('abcd')); // 646393889