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

Function getUsername

src/utils/secureStorage/macOsKeychainHelpers.ts:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43export function getUsername(): string {
44 try {
45 return process.env.USER || userInfo().username
46 } catch {
47 return 'claude-code-user'
48 }
49}
50
51// --
52

Callers 5

readFunction · 0.70
updateFunction · 0.70
deleteFunction · 0.70
doReadAsyncFunction · 0.70
spawnSecurityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected