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

x/hex/src/lib/stdx/fmt.ts>bytes.prettyBytes

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function bytes.prettyBytes
Deprecated
Deprecated

(will be removed after 0.170.0) use format instead

import { bytes } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/fmt.ts";
const { prettyBytes } = bytes;

Parameters

num: number
optional
options: FormatOptions = [UNSUPPORTED]