Skip to main content
Go to Latest
function hexDecode
import { hexDecode } from "https://deno.land/x/simple_utility@v1.3.5/mod.universal.ts";

Convert from hex string to binary.

Examples

Example 1

const bin = await Deno.readFile("./file");
const converted = hexEncode(bin);
const restored = hexDecode(converted);

Parameters

data: string

Returns

Uint8Array