ccusage-ui 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/index.html +6 -1
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -800,8 +800,13 @@
|
|
|
800
800
|
|
|
801
801
|
const shareUrl = `https://sowonlabs.github.io/ccusage-ui/share/${levelId}.html`;
|
|
802
802
|
|
|
803
|
+
// Format tokens: use B for >= 1000M, otherwise M
|
|
804
|
+
const formattedTokens = projected >= 1000
|
|
805
|
+
? `${(projected / 1000).toFixed(1)}B`
|
|
806
|
+
: `${projected.toFixed(1)}M`;
|
|
807
|
+
|
|
803
808
|
const text = `I'm a ${level} tier Claude Code user.
|
|
804
|
-
My monthly usage pace is ${
|
|
809
|
+
My monthly usage pace is ${formattedTokens} tokens.
|
|
805
810
|
|
|
806
811
|
Check yours:
|
|
807
812
|
npx ccusage-ui
|