MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getInitials

Function getInitials

web/components/ui/avatar.tsx:29–36  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

27}
28
29function getInitials(name: string): string {
30 return name
31 .split(' ')
32 .filter(Boolean)
33 .slice(0, 2)
34 .map((n) => n[0].toUpperCase())
35 .join('')
36}
37
38// Deterministic colour from name
39function getAvatarColor(name: string): string {

Callers 1

AvatarFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected