Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/encoding/hex.ts>encodeHex

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encodeHex
import { encodeHex } from "https://deno.land/std@0.207.0/encoding/hex.ts";

Encodes the source into hex string.

Parameters

src: string | Uint8Array | ArrayBuffer

Returns

string