function sizeTone
sizeTone(bytes: number): Tone

Which tone a body size wears. A terminal stops being comfortable around a hundred kilobytes and stops coping around a megabyte, so those are the two boundaries.

import { sizeTone } from './print-request.ts';

sizeTone(101); // 'good'
sizeTone(200_000); // 'warn'
sizeTone(4_000_000); // 'bad'

Parameters

bytes: number

Return Type

Usage

import { sizeTone } from "lib/commands/repl/print-request.ts";