MCPcopy Create free account
hub / github.com/freecodexyz/free-code / formatWelcomeMessage

Function formatWelcomeMessage

src/utils/logoV2Utils.ts:100–105  ·  view source on GitHub ↗
(username: string | null)

Source from the content-addressed store, hash-verified

98 * Formats the welcome message based on username
99 */
100export function formatWelcomeMessage(username: string | null): string {
101 if (!username || username.length > MAX_USERNAME_LENGTH) {
102 return 'Welcome back!'
103 }
104 return `Welcome back ${username}!`
105}
106
107/**
108 * Truncates a path in the middle if it's too long.

Callers 1

LogoV2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected