shuding

shuding/stable-hash

Stable JS value hash

TypeScript
336
14
No license

**Summary:** `stable-hash` is a lightweight JavaScript library that deterministically converts any value—primitives, objects, arrays, functions, classes, symbols, dates, regexes, BigInts, Sets, Maps, Buffers, and even circular references—into a stable string hash. It guarantees the same output for identical values and different outputs for distinct values, making it useful for caching, memoization, or generating unique identifiers where reference‑level consistency matters. **Who it’s for:** Developers who need a fast, dependency‑free way to reliably hash arbitrary JavaScript values (e.g., for SWR key generation, memoization caches, or reproducible test IDs) and who want a consistent hash across runs but do not require cryptographic security.

Total donated
Undistributed
Share with your subscribers: