Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 18, 2024 via pnpm

imurmurhash 0.1.4

An incremental implementation of MurmurHash3
Package summary
Share
0
issues
1
license
1
MIT
Package created
31 Jul 2013
Version published
24 Aug 2013
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
imurmurhash@0.1.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of imurmurhash 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does imurmurhash do?

iMurmurHash is a JavaScript-based, incremental implementation of the MurmurHash3 (32-bit) hashing algorithm. It aims to provide fast and efficient computations of hashes, serving as a fundamental ingredient in the creation of hash functions and checksums in data structures. The algorithm is particularly revered for its performance and robustness, ensuring both speed and security in applications where these attributes are paramount.

How do you use imurmurhash?

Using iMurmurhash is straightforward. You can install it directly into your browser or through Node.js using NPM. Here's how:

To use iMurmurHash in the browser:

  1. Download the latest version here.
  2. Include the downloaded script in your HTML file:
<script type="text/javascript" src="/scripts/imurmurhash.min.js"></script>
<script>
// Your code here, access iMurmurHash using the global object MurmurHash3
</script>

For Node.js, you can install the module using the NPM install command:

npm install imurmurhash

Then, you can include it in your scripts by requiring the package:

MurmurHash3 = require('imurmurhash');

Once you've installed and included the library, here's how to create a hash:

// Create the initial hash
var hashState = MurmurHash3('initial string');

// Incrementally add more text to the hash
hashState.hash('additional strings');

// You can chain several calls together
hashState.hash('and').hash('some').hash('more');

// Get a result
hashState.result(); // This will return the hash as a 32-bit positive integer

Where are the imurmurhash docs?

The comprehensive documentation of iMurmurHash is provided on its GitHub page located at https://github.com/jensyt/imurmurhash-js. The documentation contains a thorough explanation of its functions, providing code snippets and examples for basic usage, incremental hashing, chained calls, and obtaining results. You can follow the link to get detailed insights about implementing and using this versatile hashing algorithm.