Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function textHexDecode
import { textHexDecode } from "https://deno.land/x/simple_utility@v2.1.0/mod.pure.full.ts";

Convert from hex string to binary.

Examples

Example 1

const bin = await Deno.readFile("./file");
const encode = textHexEncode(bin);
const decode = textHexDecode(encode);

Parameters

data: string

Returns

Uint8Array