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

Function currencyCn

bin/bin.ts:87–101  ·  view source on GitHub ↗
(code?: string)

Source from the content-addressed store, hash-verified

85 HKD: "港币",
86 EUR: "欧元",
87 JPY: "日元",
88 GBP: "英镑",
89 AUD: "澳元",
90 CAD: "加元",
91 SGD: "新加坡元",
92 };
93 return code ? (map[code] || code) : "未知";
94}
95
96function schemeBrandDisplay(s: any): string {
97 const k = typeof s === "string" ? s.toLowerCase() : "";
98 if (!k) return "N/A";
99 if (k === "mastercard") return "Master Card";
100 if (k === "amex") return "American Express";
101 if (k === "unionpay") return "UnionPay";
102 return k.charAt(0).toUpperCase() + k.slice(1);
103}
104

Callers 1

BinPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected