File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,14 @@ added: v2.3.0
215
215
The ` os.homedir() ` method returns the home directory of the current user as a
216
216
string.
217
217
218
+ ** POSIX** :
219
+ Will use the ` $HOME ` environment variable if defined. Otherwise, it will use
220
+ the [ effective UID] [ EUID ] to look up the user's home directory.
221
+
222
+ ** Windows** :
223
+ Will use the ` USERPROFILE ` environment variable if defined. Otherwise it
224
+ will be the path to the profile directory of the current user.
225
+
218
226
## os.hostname()
219
227
<!-- YAML
220
228
added: v0.3.3
@@ -1319,4 +1327,5 @@ The following process scheduling constants are exported by
1319
1327
[ `process.arch` ] : process.html#process_process_arch
1320
1328
[ `process.platform` ] : process.html#process_process_platform
1321
1329
[ Android building ] : https://github.com/nodejs/node/blob/master/BUILDING.md#androidandroid-based-devices-eg-firefox-os
1330
+ [ EUID ] : https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID
1322
1331
[ uname(3) ] : https://linux.die.net/man/3/uname
You can’t perform that action at this time.
0 commit comments