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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccusage-ui",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "main": "server.js",
5
5
  "bin": {
6
6
  "ccusage-ui": "server.js"
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 ${projected.toFixed(1)}M tokens.
809
+ My monthly usage pace is ${formattedTokens} tokens.
805
810
 
806
811
  Check yours:
807
812
  npx ccusage-ui