import * as mod from "https://dotland.deno.dev/std@0.215.0/encoding/hex.ts"; Port of the Go encoding/hex library. This module is browser compatible. ExamplesExample 1 import { decodeHex, encodeHex, } from "https://deno.land/std@0.215.0/encoding/hex.ts"; const binary = new TextEncoder().encode("abc"); const encoded = encodeHex(binary); console.log(encoded); // => "616263" console.log(decodeHex(encoded)); // => Uint8Array(3) [ 97, 98, 99 ] FunctionsfdecodeHexDecodes the given hex-encoded string. If the input is malformed, an error is thrown. fencodeHexConverts data into a hex-encoded string.