Module

std/encoding/hex.ts>encodeHex

The Deno Standard Library
Go to Latest
function encodeHex
import { encodeHex } from "https://dotland.deno.dev/std@0.223.0/encoding/hex.ts";

Converts data into a hex-encoded string.

Examples

Example 1

import { encodeHex } from "https://deno.land/std@0.223.0/encoding/hex.ts";

encodeHex("abc"); // "616263"

Parameters

src: string | Uint8Array | ArrayBuffer

Returns

string