Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

murmurhash

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

murmurhash

A Node.js module for the optimized JavaScript implementation of the MurmurHash algorithms.

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
653K
increased by3.84%
Maintainers
1
Weekly downloads
 
Created

What is murmurhash?

The murmurhash npm package is a JavaScript implementation of the MurmurHash algorithm, which is a non-cryptographic hash function suitable for general hash-based lookup. It is known for its speed and simplicity, making it a popular choice for hash table implementations and other applications where fast hashing is required.

What are murmurhash's main functionalities?

Hashing a string

This feature allows you to generate a 32-bit hash from a given string using the MurmurHash3 algorithm. It is useful for creating hash values for strings that can be used in hash tables or for quick comparisons.

const murmurhash = require('murmurhash');
const hash = murmurhash.v3('example string');
console.log(hash); // Outputs a 32-bit hash

Hashing a string with a seed

This feature allows you to generate a 32-bit hash from a given string with an additional seed value. The seed can be used to produce different hash values for the same input string, which can be useful in certain applications like randomized algorithms.

const murmurhash = require('murmurhash');
const hash = murmurhash.v3('example string', 12345);
console.log(hash); // Outputs a 32-bit hash with a seed

Other packages similar to murmurhash

FAQs

Package last updated on 21 May 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc