Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dtils/deps.ts>hexEncodingUtils.decodeHex

The best unofficial library of utilities for Deno applications
Latest
function hexEncodingUtils.decodeHex
import { hexEncodingUtils } from "https://deno.land/x/dtils@2.6.1/deps.ts";
const { decodeHex } = hexEncodingUtils;

Decodes the given hex string to Uint8Array. If the input is malformed, an error will be thrown.

Parameters

src: string

Returns

Uint8Array