string-hash is a fast and simple string hashing function for JavaScript. It efficiently generates a non-cryptographic hash code from a given string. This library is lightweight and ideal for use cases where performance is critical, such as creating hash tables, generating unique identifiers, or implementing simple data structures. It avoids the overhead of more complex hashing algorithms while providing reasonable collision resistance for many common applications. Its ease of use and speed make it a popular choice.
The npm package string-hash has infrequent releases. Initial release "1.1.0" was in November 2012, followed by "1.1.1" in November 2016, and "1.1.2" and "1.1.3" in February 2017. No releases have occurred since February 2017, indicating a period of prolonged inactivity until July 2025.
String-hash downloads show consistent growth. From March 2024 to August 2025, downloads generally increased, reaching a peak in June 2025. July saw a slight decrease, and August's partial data suggests a potential further decrease, but it's incomplete. Overall usage shows an upward trend.