Skip to main content
Deno 2 is finally 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
import { encode } from "https://deno.land/std@0.194.0/encoding/hex.ts";

Encodes src into src.length * 2 bytes.

Parameters

src: Uint8Array

Returns

Uint8Array