stable-hash is a JavaScript library providing a deterministic hash function for JavaScript objects. Unlike JSON.stringify which can produce different string representations based on key order, stable-hash ensures a consistent output hash for equivalent objects, regardless of key ordering. This feature is crucial for caching, data comparison, and generating unique identifiers where object stability is paramount. Ideal for scenarios where reliably hashing object structure is more important than cryptographic security or speed.
The stable-hash npm package has irregular release frequency. It had two releases in September 2021. One release each in December 2022, February 2024 and March 2025 and June 2025. There were no releases in 2023. September 2025 had no releases as of September 3, 2025.
Stable-hash downloads show a significant upward trend from March 2024 to August 2025, peaking in July 2025 with over 35 million downloads. There was a notable surge in December 2024 and the growth continued into 2025. September 2025 showing a sign of decrease, but the month is not over yet.