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

x/fastro/http/server/deps.ts>encodeHex

Full Stack Framework for Deno, TypeScript, Preact JS and Tailwind CSS
Go to Latest
function encodeHex
import { encodeHex } from "https://deno.land/x/fastro@v0.85.1/http/server/deps.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