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

x/proc/tools/deps/encode.ts>decodeHex

A better way to work with processes in Deno.
Go to Latest
function decodeHex
import { decodeHex } from "https://deno.land/x/proc@0.21.9/tools/deps/encode.ts";

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@0.224.0/encoding/hex.ts";

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

Parameters

src: string

Returns

Uint8Array