Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document relation to @sindresorhus/fnv1a #6

Closed
DanielSWolf opened this issue Feb 5, 2022 · 1 comment
Closed

Document relation to @sindresorhus/fnv1a #6

DanielSWolf opened this issue Feb 5, 2022 · 1 comment

Comments

@DanielSWolf
Copy link

While looking for a package that generates FNV hashes, I came upon both @sindresorhus/string-hash and @sindresorhus/fnv1a. 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.

@sindresorhus
Copy link
Owner

It's about intent and marketing. When you see "stringHash()" when reading some code, you immediately know what it does. Not so much with "fnv1a()". And most people search for "string hash", not "fnv1a".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants