Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/simple_utility/mod.pure.ts>hexDecode

Simplify processing for Deno.
Go to Latest
function hexDecode
import { hexDecode } from "https://deno.land/x/simple_utility@v2.0.9/mod.pure.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