Import ohash
mainYou can import the core functions or the utility functions using ESM or dynamic imports. The core functions are available from ohash, while diff is available from ohash/utils.
// ESM import
import { hash, serialize, digest, isEqual } from "ohash";
import { diff } from "ohash/utils";
// Dynamic import
const { hash, serialize, digest, isEqual } = await import("ohash");
const { diff } = await import("ohash/utils");