Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/encoding/hex.ts>encodedLen

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encodedLen
import { encodedLen } from "https://deno.land/std@0.57.0/encoding/hex.ts";

EncodedLen returns the length of an encoding of n source bytes. Specifically, it returns n * 2.

Parameters

n: number

Returns

number