Last 12 weeks · 0 commits
4 of 6 standards met
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 .
Repository: sindresorhus/fnv1a. Description: FNV-1a non-cryptographic hash function Stars: 252, 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.
JavaScript
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