Non-cryptographic hash function wrapper. Currently supporting FNV-1a with hex and BigInt output.
import hash from "https://deno.land/x/nhash/mod.ts";
import hash from "@denox/nhash";
hash("๐ฆ๐", { size: 32 }).hex();
//=> "aaf5fee7"
hash("๐ฆ๐", { size: 128 }).hex();
//=> "0a25841ae4659905b36cb0d359fad39f"
hash("๐ฆ๐", { size: 32 })).valueOf();
//=> 2_868_248_295