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

x/dtils/deps.ts>hexEncodingUtils.decodeHex

The best unofficial library of utilities for Deno applications
Go to Latest
function hexEncodingUtils.decodeHex
import { hexEncodingUtils } from "https://deno.land/x/dtils@2.5.0/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