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

std/encoding/hex.ts>decode

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

Decode decodes src into decodedLen(src.length) bytes If the input is malformed an error will be thrown the error.

Parameters

src: Uint8Array

Returns

Uint8Array