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 +1 -1
- package/public/index.html +8 -6
package/package.json
CHANGED
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
|
-
|
|
804
|
-
|
|
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
|
-
|
|
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');
|