0.0.7 • Published 8 months ago
@dumbjs/quick-hash v0.0.7
Why?
Tired of copying them around
Usage
The library exports a few quick string hashing functions that are widely used
for proper bit distribution and short hashes for longer strings, (with the
exception of the BigInt implementation of sdbm
)
djb2
import { djb2 as hash } from '@dumbjs/quick-hash'
// or
// import { djb2 as hash } from '@dumbjs/quick-hash/djb2'
hash('hello') //=>261238937
sdbm
Original Version
import { sdbm as hash } from '@dumbjs/quick-hash'
// or
// import { sdbm as hash } from '@dumbjs/quick-hash/sdbm'
hash('hello') //=>31334377934759990
GAWK Version
import { sdbmGawk as hash } from '@dumbjs/quick-hash'
// or
// import { sdbmGawk as hash } from '@dumbjs/quick-hash/sdbm'
hash('hello') //=>1925877435333486942514
License
0.0.5
8 months ago
0.0.7
8 months ago
0.0.6
8 months ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.2-beta.0
2 years ago
0.0.1
2 years ago
0.0.1-beta.4
2 years ago
0.0.1-beta.3
2 years ago
0.0.1-beta.2
2 years ago
0.0.1-beta.1
2 years ago