
Security News
OpenClaw Advisory Surge Highlights Gaps Between GHSA and CVE Tracking
A recent burst of security disclosures in the OpenClaw project is drawing attention to how vulnerability information flows across advisory and CVE systems.
A function which will always return the same output given the same
input. The output is an integer in the range 0..n where n is the max
value given upon initialization of the module.
The output is not guaranteed to be unique - only to be predictable based on the input.
npm install hash-index
// initialize with a max output of 100
var hasher = require('hash-index')(100)
hasher('foo') // => 9
hasher('bar') // => 73
hasher('foo') // => 9
hasher('bar') // => 73
If no max value is given, infinity is used as the max value.
If the input is not either a non-empty string, a non-empty array or a
number, NaN will be returned.
MIT
FAQs
A hashing function which returns integers with a possible max value
We found that hash-index demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
A recent burst of security disclosures in the OpenClaw project is drawing attention to how vulnerability information flows across advisory and CVE systems.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.