Skip to main content
Module

std/encoding/hex.ts>decode

Deno standard library
Go to Latest
function 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 { decode } from "https://deno.land/std@0.205.0/encoding/hex.ts";

Parameters

src: Uint8Array

Returns

Uint8Array