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

x/dtils/deps.ts>hexEncodingUtils.decode

The best unofficial library of utilities for Deno applications
Go to Latest
function hexEncodingUtils.decode
import { hexEncodingUtils } from "https://deno.land/x/dtils@2.3.1/deps.ts";
const { decode } = hexEncodingUtils;

Decodes src into src.length / 2 bytes. If the input is malformed, an error will be thrown.

Parameters

src: Uint8Array

Returns

Uint8Array