Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function hexDecode
import { hexDecode } from "https://deno.land/x/simple_utility@v1.4.2/mod.universal.ts";

Convert from hex string to binary.

Examples

Example 1

const bin = await Deno.readFile("./file");
const encode = hexEncode(bin);
const decode = hexDecode(encode);

Parameters

data: string

Returns

Uint8Array