Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/encoding/hex.ts>encode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encode
Deprecated
Deprecated

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

Encodes src into src.length * 2 bytes.

import { encode } from "https://deno.land/std@0.205.0/encoding/hex.ts";

Parameters

src: Uint8Array

Returns

Uint8Array