Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dtils/deps.ts>hexEncodingUtils.decode

The best unofficial library of utilities for Deno applications
Go to Latest
function hexEncodingUtils.decode
Deprecated
Deprecated

(will be removed in 0.210.0) Use a decodeHex instead.

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

import { hexEncodingUtils } from "https://deno.land/x/dtils@2.5.0/deps.ts";
const { decode } = hexEncodingUtils;

Parameters

src: Uint8Array

Returns

Uint8Array