0.0.2 • Published 8 years ago

node.murmur3.js v0.0.2

Weekly downloads
4
License
-
Repository
github
Last release
8 years ago

A murmur3 library for NodeJS.

Distributed under terms of the MIT license.

see test/index.js for examples or run npm test

API

murmur3.

  • hash(str) - return int
    • str - MUST - the source string.
    • seed - OPTIONAL - seed for hash default 0.
  • hash64(str) - return array
    • str - MUST - the source string.
    • seed - OPTIONAL - seed for hash default 0.
    • x64arch - OPTIONAL - is x86(false) or x64(true) default x64(true).
  • hash_bytes(str) - return Buffer
    • str - MUST - the source string.
    • seed - OPTIONAL - seed for hash default 0.
    • x64arch - OPTIONAL - is x86(false) or x64(true) default x64(true).

Note

hash64 maybe not work expected because of int64 in javascript

0.0.2

8 years ago

0.0.1

8 years ago