MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / toTitleCase

Function toTitleCase

bin/bin.ts:70–76  ·  view source on GitHub ↗
(s: any)

Source from the content-addressed store, hash-verified

68 .join(" ");
69}
70
71function formatCountry(c: any): string {
72 if (!c) return "N/A";
73 const raw = c.name || "";
74 const name = raw.replace(" (Province of China)", "").trim();
75 const code = c.alpha2 ? ` (${c.alpha2})` : "";
76 const emoji = c.emoji ? c.emoji + " " : "";
77 return `${emoji}${name || "未知"}${code}`;
78}
79

Callers 1

BinPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected