Tiny FNV-1a 32-bit hash for strings/bytes.
import { fnv1a32, fnv1a32Hex } from 'tiny-fnv1a'
fnv1a32('hello') // 1335831723
fnv1a32Hex('hello') // "4f9f2cab"
const bytes = new Uint8Array([1, 2, 3])
fnv1a32(bytes) // 2917712173const { fnv1a32, fnv1a32Hex } = require('tiny-fnv1a')fnv1a32(input: Uint8Array | string): numberfnv1a32Hex(input: Uint8Array | string): string
Non-cryptographic. For checksums, caches, map keys.
MIT