GitShow/sindresorhus/fnv1a
sindresorhus

fnv1a

FNV-1a non-cryptographic hash function

by sindresorhus
fnvfnv-1afnv-algorithmsnode-modulenon-cryptographic-hash-functionsnpm-package
Star on GitHubForknpm

JavaScript

259 stars15 forks7 contributorsQuiet · 2y agoSince 2018v3.1.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus16 contributions
BendingBender
BendingBender2 contributions
DASPRiD
DASPRiD1 contribution
dbrockman
dbrockman1 contribution
fregante
fregante1 contribution
Richienb
Richienb1 contribution
broofa
broofa1 contribution

Languages

View on GitHub →
JavaScript98.9%
TypeScript1.1%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
dbrockman
Improve performance and allow Uint8Array inputsMergedPR

The input value can be a string or a Uint8Array. If it's a string, it will be encoded to a Uint8Array using the cached TextEncoder instance. Added a new option to allow the caller to provide a pre-allocated Uint8Array buffer to use for encoding. When the option is provided, the input string is encoded into the buffer using . The new test cases use the same input strings and expected bigint values as the original test cases, so it's easy to see that the new implementation produces the same results. Benchmarks "Original fnv1a" is the implementation on the main branch. The full benchmark script is included below in a tag. benchmark script This is the script used to produce the benchmarks above. It is using .

dbrockman · 2y ago
virajshelke
Error [ERR_REQUIRE_ESM] & TypeError: Unknown file extension ".ts" with latest version 3.0.0ClosedIssue

When I try to build my typescript code and run it I am getting the following error. My config is, Surprisingly my test cases are also not able tp run. Mocha runner fails with following error, Note - The same codebase with no changes in the code works absolutely fine with version node - v16.13.0 LTS npm - v8.1.0 Any idea as to why is it breaking in runtime & breaking my tests? My compilation works fine! @sindresorhus

virajshelke · 4y ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
Structured data for AI agents

Repository: sindresorhus/fnv1a. Description: FNV-1a non-cryptographic hash function Stars: 259, Forks: 15. Primary language: JavaScript. Languages: JavaScript (98.9%), TypeScript (1.1%). License: MIT. Topics: fnv, fnv-1a, fnv-algorithms, node-module, non-cryptographic-hash-functions, npm-package. Latest release: v3.1.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, DASPRiD, dbrockman, fregante, Richienb, broofa.

·@ofershap

Replace github.com with gitshow.dev