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

std/encoding/hex.ts>decodeHex

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function decodeHex
import { decodeHex } from "https://deno.land/std@0.205.0/encoding/hex.ts";

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

Parameters

src: string

Returns

Uint8Array