easysvs-ledger
v0.3.0
Published
Ledger JSONL parsing and local cost estimation for easysvs
Maintainers
Readme
easysvs-ledger
JSONL parser + local cost estimator for Claude Code session logs. Reads
~/.claude/projects/and computes spend by model and project.
Used by easysvs-cli for local cost summaries; can also be embedded into other tools that want to analyse Claude Code usage.
Install
npm install easysvs-ledgerQuick example
import { parseSession, estimateCost } from "easysvs-ledger";
const events = await parseSession("/path/to/session.jsonl");
const cost = estimateCost(events);
console.log(cost.total);(Surface details may evolve; the CLI is the stable consumer.)
License
MIT — see LICENSE.
