All Projects → sindresorhus → djb2a

sindresorhus / djb2a

Licence: MIT license
DJB2a non-cryptographic hash function

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to djb2a

sdbm
SDBM non-cryptographic hash function
Stars: ✭ 43 (+38.71%)
Mutual labels:  hashing, npm-package, node-module, non-cryptographic-hash-functions
String Hash
Get the hash of a string
Stars: ✭ 56 (+80.65%)
Mutual labels:  hashing, npm-package, node-module
Node Loadbalance
A collection of distilled load balancing engines
Stars: ✭ 79 (+154.84%)
Mutual labels:  npm-package, node-module
Fnv1a
FNV-1a non-cryptographic hash function
Stars: ✭ 101 (+225.81%)
Mutual labels:  npm-package, node-module
Aws Lambda Libreoffice
85 MB LibreOffice to fit inside AWS Lambda compressed with Brotli
Stars: ✭ 145 (+367.74%)
Mutual labels:  npm-package, node-module
Conf
Simple config handling for your app or module
Stars: ✭ 707 (+2180.65%)
Mutual labels:  npm-package, node-module
Is
Type check values
Stars: ✭ 1,011 (+3161.29%)
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 (+5041.94%)
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 (-51.61%)
Mutual labels:  npm-package, node-module
Gh Got
Convenience wrapper for Got to interact with the GitHub API
Stars: ✭ 156 (+403.23%)
Mutual labels:  npm-package, node-module
Singlespotify
🎵 Create Spotify playlists based on one artist through the command line
Stars: ✭ 254 (+719.35%)
Mutual labels:  npm-package, node-module
Node Module Boilerplate
Boilerplate to kickstart creating a Node.js module
Stars: ✭ 668 (+2054.84%)
Mutual labels:  npm-package, node-module
Rando.js
The world's easiest, most powerful random function.
Stars: ✭ 659 (+2025.81%)
Mutual labels:  npm-package, node-module
Awesome Node Utils
some useful npm packages for nodejs itself
Stars: ✭ 51 (+64.52%)
Mutual labels:  npm-package, node-module
Figures
Unicode symbols with Windows CMD fallbacks
Stars: ✭ 438 (+1312.9%)
Mutual labels:  npm-package, node-module
P Queue
Promise queue with concurrency control
Stars: ✭ 1,863 (+5909.68%)
Mutual labels:  npm-package, node-module
Transliterate
Convert Unicode characters to Latin characters using transliteration
Stars: ✭ 152 (+390.32%)
Mutual labels:  npm-package, node-module
Crypto Hash
Tiny hashing module that uses the native crypto API in Node.js and the browser
Stars: ✭ 501 (+1516.13%)
Mutual labels:  hashing, npm-package
ugql
🚀GraphQL.js over HTTP with uWebSockets.js
Stars: ✭ 27 (-12.9%)
Mutual labels:  npm-package, node-module
noble-hashes
Audited & minimal JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2 & Scrypt
Stars: ✭ 213 (+587.1%)
Mutual labels:  hashing

djb2a

DJB2a non-cryptographic hash function

DJB2a has good distribution and collisions are rare.

Install

$ npm install djb2a

Usage

import djb2a from 'djb2a';

djb2a('🦄🌈');
//=> 1484783307

It returns the hash as a positive integer.

Related

  • fnv1a - FNV-1a non-cryptographic hash function
  • sdbm - SDBM non-cryptographic hash function
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].