Skip to content

jaysoo/murmurhashjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js binding for MurmurHash2A by Austin Appleby.

This is a very fast, non-cryptographic hash suitable for general hash-based lookup. See: http://sites.google.com/site/murmurhash/

Build with node-waf configure build

murmurhash.js exports two versions of MurmurHash2A: the regular version (MurmurHash2A) and the incremental version (CMurmurHash2A).

Usage:

var assert = require('assert')
  , murmurhash = require('./murmurhash');

var hash = murmurhash.MurmurHash('foobar'); 

var hasher = murmurhash.createMurmurHasher();
hasher.add("foo");
hasher.add("bar");
var chash = hasher.end();

assert.equal(hash, chash);

Also see tests.js

Licensed under MIT license. See LICENSE

About

MurmurHash2A binding for Node.js. A super fast hash algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published