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

x/postgres/tests/test_deps.ts>hex.encodeHex

PostgreSQL driver for Deno
Go to Latest
function hex.encodeHex
import { hex } from "https://deno.land/x/postgres@v0.19.0/tests/test_deps.ts";
const { encodeHex } = hex;

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