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

x/aleph/server/helper.ts>formatBytesWithColor

The Full-stack Framework in Deno.
Very Popular
Go to Latest
function formatBytesWithColor
import { formatBytesWithColor } from "https://deno.land/x/aleph@v0.3.0-alpha.32/server/helper.ts";

coloring the bytes string

  • dim: 0 - 1MB
  • yellow: 1MB - 10MB
  • red: > 10MB

Parameters

bytes: number