MCPcopy Index your code
hub / github.com/coder/mux / getDefaultUsername

Function getDefaultUsername

src/node/runtime/sshConfigParser.ts:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 return process.env.USERPROFILE ?? os.homedir();
31}
32function getDefaultUsername(): string {
33 try {
34 return os.userInfo().username;
35 } catch {
36 return process.env.USER ?? process.env.USERNAME ?? "";
37 }
38}
39
40function expandHomePath(value: string, homeDir: string): string {
41 if (value === "~") {

Callers 1

resolveSSHConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected