API reference › @evolu/common › Type › uint8ArrayToHex
function uint8ArrayToHex(bytes: Uint8Array): string & Brand<"Hex">;
Defined in: packages/common/src/Type.ts:8962
Converts bytes to Hex.
Example
import { assertEqual, uint8ArrayToHex } from "@evolu/common";
assertEqual(uint8ArrayToHex(new Uint8Array([0, 1, 2, 255])), "000102ff");