Skip to content

Zero dependency murmur2 buffer hash algorithm implementation in JavaScript

License

Notifications You must be signed in to change notification settings

callmeteus/murmur2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

murmur2

Zero dependency murmur2 buffer hash algorithm implementation in JavaScript

Originally created by Austin Appleby Inspired by flagUpDown's code and CAV2's whitespace remotion code

How to use

const murmur2 = require("murmur2");

const removeWhitespaces = false;
const seed = 0;

const buffer = Buffer.from([1, 2, 3, 4]);

const hash = murmur2(buffer, seed, removeWhitespaces); // Should return 1487941662

Special thanks to Arzio (https://github.com/arzio)

About

Zero dependency murmur2 buffer hash algorithm implementation in JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published