MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / formatWelcomeMessage

Function formatWelcomeMessage

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

Source from the content-addressed store, hash-verified

95 * Formats the welcome message based on username
96 */
97export function formatWelcomeMessage(username: string | null): string {
98 if (!username || username.length > MAX_USERNAME_LENGTH) {
99 return 'Welcome back!'
100 }
101 return `Welcome back ${username}!`
102}
103
104/**
105 * 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