Documentation
¶
Overview ¶
Package nodehome is Node's os.homedir(), which Pi's getHomeDir (package-manager.ts) falls back to when HOME is empty or absent: the home directory the environment names, else the one the system's user database lists for the process's user, else a thrown SystemError. Go's os.UserHomeDir reads the environment alone, and os/user.Current reads the user database alone; neither throws as Node does.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir is os.homedir(): the home variable of the platform (HOME, or USERPROFILE on Windows) when it is set, an explicit empty value included, else the home directory of the user database's entry for the process's user. With neither it returns *Error.
Types ¶
Click to show internal directories.
Click to hide internal directories.