ccusage-ui 0.1.9 → 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.9",
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,16 +800,18 @@
800
800
 
801
801
  const shareUrl = `https://sowonlabs.github.io/ccusage-ui/share/${levelId}.html`;
802
802
 
803
- const text = `I'm a ${level} AI user.
804
- My monthly usage pace is ${projected.toFixed(1)}M tokens.
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
+
808
+ const text = `I'm a ${level} tier Claude Code user.
809
+ My monthly usage pace is ${formattedTokens} tokens.
805
810
 
806
811
  Check yours:
807
812
  npx ccusage-ui
808
813
 
809
- Do you use Claude Code like an employee?
810
- Manage your team with @CrewX
811
-
812
- #ClaudeCode #CrewX #SowonLabs ${shareUrl}`;
814
+ #ClaudeCode #ccusage ${shareUrl}`;
813
815
 
814
816
  const url = `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}`;
815
817
  window.open(url, '_blank');