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

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

PostgreSQL driver for Deno
Extremely Popular
Go to Latest
function hex.encodeHex
import { hex } from "https://deno.land/x/postgres@v0.18.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