fmix is a JavaScript implementation of the MurmurHash3 x86 finalization mix function, a crucial step in the MurmurHash3 algorithm for generating high-quality hash values. The package provides a lightweight, single-purpose utility to apply this finalization step to a given 32-bit number. The current stable version is 1.0.0, released in July 2021. As a focused cryptographic utility, its release cadence is typically slow, with updates primarily addressing environmental compatibility or minor optimizations rather than new features, signifying a mature and stable API. It differentiates itself by offering only the finalization mix, allowing developers to integrate it into custom hashing implementations or use it alongside other MurmurHash3 components like `murmur-32` or `murmur-128` (from the same author) where modularity is desired, rather than a full end-to-end hashing solution. This allows for fine-grained control over the hashing process. The library is dependency-free, ensuring a minimal footprint.
npm install fmixVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install `fmix` and compute the finalization mix for a given 32-bit number, showing its deterministic output.
Migrate all `require()` statements to `import` statements (e.g., `import fmix from 'fmix'`) and ensure your project environment supports ESM.
Ensure your Node.js environment is `^12.20.0`, `^14.13.1`, or `>=16.0.0` or newer to use `fmix@1.0.0` and above.
Change `const fmix = require('fmix');` to `import fmix from 'fmix';` in your JavaScript or TypeScript files. Ensure your environment is configured for ESM.No dependency data recorded yet.