🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

node-murmurhash

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-murmurhash

murmurhash V2, support utf8 Buffer

1.0.1
Source
npm
Version published
Weekly downloads
964
-34.64%
Maintainers
1
Weekly downloads
 
Created
Source

node-murmurhash

NPM version build status Test coverage Gittip David deps node version npm download

murmurhash V2, support utf8 Buffer.

Install

$ npm install node-murmurhash --save

Node versions

  • node 0.11.12: use node-murmurhash@0.0.x
  • node 0.10.x | 0.11.x: use node-murmurhash@>=1.0.1
  • node >= 0.12.0: use node-murmurhash@>=1.0.1
  • iojs >= 1.0.0: use node-murmurhash@>=1.0.1

Usage

var murmurhash = require('node-murmurhash');

murmurhash('hello 中国', 97); // 1248731102

Benchmark

@see benchmark.md

Totoro Cross platform test

$ totoro --runner test/murmurhash.test.js \
	-b 'linux/node/0.11,linux/node/0.10,windowsXP/node/0.11,windows7/node/0.11,windowsXP/node/0.10,windows7/node/0.10'
info tgz.js:42 | tgz /Users/mk2/git/node-murmurhash/ by req: /test/murmurhash.test.js?__totoro_root_tgz=true
info index.js:162 | proxyRes, path: /test/murmurhash.test.js?__totoro_root_tgz=true, status: 200, body size: 78760
info index.js:124 | Labor < linux/node/0.11 > finished order.
info index.js:124 | Labor < linux/node/0.10 > finished order.
info index.js:124 | Labor < windowsXP/node/0.10 > finished order.
info index.js:124 | Labor < windowsXP/node/0.11 > finished order.
info index.js:124 | Labor < windows7/node/0.10 > finished order.
info index.js:124 | Labor < windows7/node/0.11 > finished order.

  node 0.10 / linux 2.6
  Passed all of 2 tests in 623ms
    > [runner] ip: 10.232.19.167, driver version: 0.1.10, node version: v0.10.29

  node 0.11 / linux 2.6
  Passed all of 2 tests in 892ms
    > [runner] ip: 10.125.6.246, driver version: 0.1.10, node version: v0.11.12

  node 0.10 / windows7 7
  Passed all of 2 tests in 1172ms
    > [runner] ip: 10.15.52.89, driver version: 0.1.10, node version: v0.10.29

  node 0.11 / windows7 7
  Passed all of 2 tests in 1344ms
    > [runner] ip: 10.15.52.89, driver version: 0.1.10, node version: v0.11.12

  node 0.10 / windowsXP XP
  Passed all of 2 tests in 2485ms
    > [runner] ip: 10.15.52.88, driver version: 0.1.10, node version: v0.10.29

  node 0.11 / windowsXP XP
  Passed all of 2 tests in 2718ms
    > [runner] ip: 10.15.52.88, driver version: 0.1.10, node version: v0.11.12

===============================
  Passed on all of 6 browsers
===============================

License

MIT

Keywords

node-murmurhash

FAQs

Package last updated on 13 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts