Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.
/ home-path Public archive

Cross-platform home directory retriever

License

Notifications You must be signed in to change notification settings

75lb/home-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view on npm npm module downloads Build Status Dependency Status js-standard-style

home-path

Cross-platform home directory retriever, tested on Windows XP and above, Mac OSX and Linux.

With node versions 2.3.0 (iojs) or higher, the built-in os.homedir method is used.

Example

var getHomePath = require('home-path')

getHomePath() ⏏

Kind: Exported function
Example
Mac OSX

> getHomePath()
'/Users/Lloyd'

Ubuntu Linux

> getHomePath()
'/home/lloyd'

Windows 8.1

> getHomePath()
'C:\\Users\\Lloyd'

© 2015-19 Lloyd Brookes <[email protected]>. Documented by jsdoc-to-markdown.

About

Cross-platform home directory retriever

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published