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
215215The ` os.homedir() `  method returns the home directory of the current user as a
216216string.
217217
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+ 
218226## os.hostname()  
219227<!--  YAML
220228added: v0.3.3 
@@ -1319,4 +1327,5 @@ The following process scheduling constants are exported by
13191327[ `process.arch` ] : process.html#process_process_arch 
13201328[ `process.platform` ] : process.html#process_process_platform 
13211329[ 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 
13221331[ uname(3) ] : https://linux.die.net/man/3/uname 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments