All Projects → sindresorhus → sdbm

sindresorhus / sdbm

Licence: MIT license
SDBM 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 sdbm

djb2a
DJB2a non-cryptographic hash function
Stars: ✭ 31 (-27.91%)
Mutual labels:  hashing, npm-package, node-module, non-cryptographic-hash-functions
String Hash
Get the hash of a string
Stars: ✭ 56 (+30.23%)
Mutual labels:  hashing, npm-package, node-module
Node Loadbalance
A collection of distilled load balancing engines
Stars: ✭ 79 (+83.72%)
Mutual labels:  npm-package, node-module
Fnv1a
FNV-1a non-cryptographic hash function
Stars: ✭ 101 (+134.88%)
Mutual labels:  npm-package, node-module
Aws Lambda Libreoffice
85 MB LibreOffice to fit inside AWS Lambda compressed with Brotli
Stars: ✭ 145 (+237.21%)
Mutual labels:  npm-package, node-module
Conf
Simple config handling for your app or module
Stars: ✭ 707 (+1544.19%)
Mutual labels:  npm-package, node-module
Is
Type check values
Stars: ✭ 1,011 (+2251.16%)
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 (+3606.98%)
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 (-65.12%)
Mutual labels:  npm-package, node-module
Singlespotify
🎵 Create Spotify playlists based on one artist through the command line
Stars: ✭ 254 (+490.7%)
Mutual labels:  npm-package, node-module
Gh Got
Convenience wrapper for Got to interact with the GitHub API
Stars: ✭ 156 (+262.79%)
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 (+1065.12%)
Mutual labels:  hashing, npm-package
Node Module Boilerplate
Boilerplate to kickstart creating a Node.js module
Stars: ✭ 668 (+1453.49%)
Mutual labels:  npm-package, node-module
Rando.js
The world's easiest, most powerful random function.
Stars: ✭ 659 (+1432.56%)
Mutual labels:  npm-package, node-module
Awesome Node Utils
some useful npm packages for nodejs itself
Stars: ✭ 51 (+18.6%)
Mutual labels:  npm-package, node-module
Figures
Unicode symbols with Windows CMD fallbacks
Stars: ✭ 438 (+918.6%)
Mutual labels:  npm-package, node-module
P Queue
Promise queue with concurrency control
Stars: ✭ 1,863 (+4232.56%)
Mutual labels:  npm-package, node-module
Transliterate
Convert Unicode characters to Latin characters using transliteration
Stars: ✭ 152 (+253.49%)
Mutual labels:  npm-package, node-module
ugql
🚀GraphQL.js over HTTP with uWebSockets.js
Stars: ✭ 27 (-37.21%)
Mutual labels:  npm-package, node-module
mongo-gui
A web-based MongoDB graphical user interface
Stars: ✭ 111 (+158.14%)
Mutual labels:  npm-package

sdbm

SDBM non-cryptographic hash function

SDBM has good distribution and collisions are rare.

Install

$ npm install sdbm

Usage

import sdbm from 'sdbm';

sdbm('🦄🌈');
//=> 4053542802

It returns the hash as a positive integer.

Related

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