Skip to content

ccusage / data-loader / loadDailyUsageData

Function: loadDailyUsageData() ​

ts
function loadDailyUsageData(options?): Promise<object[]>;

Loads and aggregates Claude usage data by day Processes all JSONL files in the Claude projects directory and groups usage by date

Parameters ​

ParameterTypeDescription
options?LoadOptionsOptional configuration for loading and filtering data

Returns ​

Promise<object[]>

Array of daily usage summaries sorted by date

Released under the MIT License.