Skip to content

ccusage / data-loader / getContextUsageThresholds

Function: getContextUsageThresholds()

ts
function getContextUsageThresholds(): object;

Get context usage percentage thresholds for color coding Can be configured via environment variables or uses defaults Validates and clamps values to 0-100 range and enforces LOW < MEDIUM ordering

Returns

object

Context usage thresholds with LOW and MEDIUM percentages

LOW

ts
readonly LOW: number;

MEDIUM

ts
readonly MEDIUM: number;

Released under the MIT License.