Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Hex.parse

import { Hex } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/helpers/mod.ts"; 

const { parse } = Hex;

Parses a hexadecimal string to a byte array. Throws SyntaxError if the hexadecimal string is invalid.

Hex.parse("395f001");
// Uint8Array(4) [ 3, 149, 240, 1 ]
function parse(input: string): Uint8Array;
§
parse(input: string): Uint8Array
[src]

§Parameters

§
input: string
[src]

Hexadecimal string

§Return Type

§
Uint8Array
[src]