GitShow/sindresorhus/string-hash
sindresorhus

string-hash

Get the hash of a string

by sindresorhus
hash-codehashingnode-modulenpm-packagestring-hash
Star on GitHubForknpm

JavaScript

68 stars6 forks3 contributorsQuiet · 4y agoSince 2018v2.0.0MIT

Meet the team

See all 3 on GitHub →
sindresorhus
sindresorhus8 contributions
BendingBender
BendingBender2 contributions
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript95.2%
TypeScript4.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
ltetzlaff
Support variable bit-widthClosedIssue

I recently encountered a similar use case (went for crc16 btw) where the hash had to be provided as a 16-bit number. Given JS-numbers are 64 bits and FNV-1a allowing variable bit length up to 1k I could see this as a useful configurable parameter defaulting to 64. What do you think?

ltetzlaff · 4y ago
DanielSWolf
Document relation to @sindresorhus/fnv1aClosedIssue

While looking for a package that generates FNV hashes, I came upon both and . I got rather confused trying to find a relevant difference between them, so I fully read through both readme files, then finally the source code itself, where it turned out that this package is merely a one-line wrapper around the other one. I'm not really sure what the rationale behind this is, but maybe you could add a short sentence to the readme files so that later visitors don't get confused in the same way I did.

DanielSWolf · 4y ago
Richienb
Re-export?ClosedIssue

Why is this module a re-export of ? I would assume because of the understandable package name.

Richienb · 5y ago
Structured data for AI agents

Repository: sindresorhus/string-hash. Description: Get the hash of a string Stars: 68, Forks: 6. Primary language: JavaScript. Languages: JavaScript (95.2%), TypeScript (4.8%). License: MIT. Topics: hash-code, hashing, node-module, npm-package, string-hash. Latest release: v2.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 4y ago. Community health: 71%. Top contributors: sindresorhus, BendingBender, Richienb.

·@ofershap

Replace github.com with gitshow.dev