Skip to main content
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-beta.12/server/helper.ts";

coloring the bytes string

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

Parameters

bytes: number