Comparing version 0.0.1 to 0.0.2
@@ -16,3 +16,3 @@ (function(){ | ||
*/ | ||
function v2(str, seed) { | ||
function MurmurHashV2(str, seed) { | ||
var | ||
@@ -67,3 +67,3 @@ l = str.length, | ||
*/ | ||
function v3(key, seed) { | ||
function MurmurHashV3(key, seed) { | ||
var remainder, bytes, h1, h1b, c1, c1b, c2, c2b, k1, i; | ||
@@ -120,5 +120,5 @@ | ||
var murmur = v3; | ||
murmur.v2 = v2; | ||
murmur.v3 = v3; | ||
var murmur = MurmurHashV3; | ||
murmur.v2 = MurmurHashV2; | ||
murmur.v3 = MurmurHashV3; | ||
@@ -125,0 +125,0 @@ if (typeof(module) != 'undefined') { |
{ | ||
"name" : "murmurhash", | ||
"version" : "0.0.1", | ||
"version" : "0.0.2", | ||
"description" : "A Node.js module for the optimized JavaScript implementation of the MurmurHash algorithms.", | ||
@@ -5,0 +5,0 @@ "author": { |
# node-murmurhash | ||
**NOTE:** This is a port of [Gary Court's excellent work](https://github.com/garycourt/murmurhash-js) to a commonJS module that can be easily included into a node.js project or the browser. I take no credit for the implementation, I am simply making it easier to use for others. | ||
**NOTE:** This is a port of [Gary Court's excellent work](https://github.com/garycourt/murmurhash-js), to a commonJS module that can be easily included into a node.js project or the browser. I take no credit for the implementation. I am simply making it easier to use for others. | ||
@@ -18,3 +18,3 @@ An optimized JavaScript implementation of the MurmurHash algorithms. | ||
``` | ||
```html | ||
<script type="text/javascript" src="murmurhash.js"></script> | ||
@@ -21,0 +21,0 @@ ``` |
6639