Module

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

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

Decodes the given hex-encoded string. If the input is malformed, an error is thrown.

Examples

Example 1

import { decodeHex } from "https://deno.land/std@$STD_VERSION/encoding/hex.ts";

decodeHex("616263"); // Uint8Array(3) [ 97, 98, 99 ]

Parameters

src: string

Returns

Uint8Array