sdbm
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i sdbm

    Weekly Downloads

    381

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.93 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus