Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/encoding/hex.ts>encodeHex

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

Converts data into a hex-encoded string.

Examples

Example 1

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

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

Parameters

src: string | Uint8Array | ArrayBuffer

Returns

string