MCPcopy
hub / github.com/codeaashu/claude-code / getUsername

Function getUsername

src/utils/claudeInChrome/common.ts:534–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

532}
533
534function getUsername(): string {
535 try {
536 return userInfo().username || 'default'
537 } catch {
538 return process.env.USER || process.env.USERNAME || 'default'
539 }
540}
541

Callers 4

getSocketDirFunction · 0.70
getAllSocketPathsFunction · 0.70
getSocketNameFunction · 0.70
saveApiKeyFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected