sindresorhus / Fnv1a
Licence: mit
FNV-1a non-cryptographic hash function
Stars: β 101
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Fnv1a
ugql
πGraphQL.js over HTTP with uWebSockets.js
Stars: β 27 (-73.27%)
Mutual labels: npm-package, node-module
Figures
Unicode symbols with Windows CMD fallbacks
Stars: β 438 (+333.66%)
Mutual labels: npm-package, node-module
djb2a
DJB2a non-cryptographic hash function
Stars: β 31 (-69.31%)
Mutual labels: npm-package, node-module
Transliterate
Convert Unicode characters to Latin characters using transliteration
Stars: β 152 (+50.5%)
Mutual labels: npm-package, node-module
Gh Got
Convenience wrapper for Got to interact with the GitHub API
Stars: β 156 (+54.46%)
Mutual labels: npm-package, node-module
midtrans-node
Unoffficial Midtrans Payment API Client for Node JS | Alternative for Midtrans Official Module | https://midtrans.com
Stars: β 15 (-85.15%)
Mutual labels: npm-package, node-module
sdbm
SDBM non-cryptographic hash function
Stars: β 43 (-57.43%)
Mutual labels: npm-package, node-module
Conf
Simple config handling for your app or module
Stars: β 707 (+600%)
Mutual labels: npm-package, node-module
Node Module Boilerplate
Boilerplate to kickstart creating a Node.js module
Stars: β 668 (+561.39%)
Mutual labels: npm-package, node-module
Aws Lambda Libreoffice
85 MB LibreOffice to fit inside AWS Lambda compressed with Brotli
Stars: β 145 (+43.56%)
Mutual labels: npm-package, node-module
Update Notifier
The idea for this module came from the desire to apply the browser update strategy to CLI tools, where everyone is always on the latest version. We first tried automatic updating, which we discovered wasn't popular. This is the second iteration of that idea, but limited to just update notifications.
Stars: β 1,594 (+1478.22%)
Mutual labels: npm-package, node-module
Singlespotify
π΅ Create Spotify playlists based on one artist through the command line
Stars: β 254 (+151.49%)
Mutual labels: npm-package, node-module
P Queue
Promise queue with concurrency control
Stars: β 1,863 (+1744.55%)
Mutual labels: npm-package, node-module
Rando.js
The world's easiest, most powerful random function.
Stars: β 659 (+552.48%)
Mutual labels: npm-package, node-module
Awesome Node Utils
some useful npm packages for nodejs itself
Stars: β 51 (-49.5%)
Mutual labels: npm-package, node-module
Node Loadbalance
A collection of distilled load balancing engines
Stars: β 79 (-21.78%)
Mutual labels: npm-package, node-module
Rollup Plugin Chrome Extension
A feature-rich solution for bundled Chrome extensions! π―
Stars: β 89 (-11.88%)
Mutual labels: npm-package
fnv1a
FNV-1a non-cryptographic hash function
FNV-1a has outstanding distribution and collisions are rare.
FNV hashes are designed to be fast while maintaining a low collision rate. The FNV speed allows one to quickly hash lots of data while maintaining a reasonable collision rate. The high dispersion of the FNV hashes makes them well suited for hashing nearly identical strings such as URLs, hostnames, filenames, text, IP addresses, etc.
Install
$ npm install @sindresorhus/fnv1a
Usage
const fnv1a = require('@sindresorhus/fnv1a');
fnv1a('π¦π');
//=> 2868248295
fnv1a.bigInt('π¦π', {size: 128});
//=> 13487074350300261116944693128525960095n
API
fnv1a(string)
Returns the hash as a 32-bit positive integer.
fnv1a.bigInt(string, options?)
Generate a larger hash using BigInt
.
Returns the hash as a positive BigInt
.
options
Type: object
size
Type: number
Values: 32 | 64 | 128 | 256 | 512 | 1024
The bit size of the hash.
Related
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].