MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / short

Function short

wxapp/nestle.js:39–43  ·  view source on GitHub ↗
(value, max = 260)

Source from the content-addressed store, hash-verified

37}
38
39function short(value, max = 260) {
40 if (value === undefined || value === null) return "";
41 const text = typeof value === "string" ? value : JSON.stringify(value);
42 return text.length > max ? `${text.slice(0, max)}...` : text;
43}
44
45function maskToken(token = "") {
46 const value = String(token || "");

Callers 7

getWxCodeFunction · 0.70
loginMethod · 0.70
apiMethod · 0.70
queryUserMethod · 0.70
queryPointsMethod · 0.70
querySignMethod · 0.70
signMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected