Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/tools/deps/encode.ts>encodeHex

A better way to work with processes in Deno.
Go to Latest
function encodeHex
import { encodeHex } from "https://deno.land/x/proc@0.21.9/tools/deps/encode.ts";

Converts data into a hex-encoded string.

Examples

Example 1

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

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

Parameters

src: string | Uint8Array | ArrayBuffer

Returns

string