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

x/deno/std/encoding/hex.ts>encodedLen

A modern runtime for JavaScript and TypeScript.
Go to Latest
function encodedLen
import { encodedLen } from "https://deno.land/x/deno@v0.22.0/std/encoding/hex.ts";

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

Parameters

n: number

Returns

number