|
|
il y a 8 ans | |
|---|---|---|
| .. | ||
| jsdoc2md | il y a 8 ans | |
| lib | il y a 8 ans | |
| test | il y a 8 ans | |
| .npmignore | il y a 8 ans | |
| .travis.yml | il y a 8 ans | |
| LICENSE | il y a 8 ans | |
| README.md | il y a 8 ans | |
| package.json | il y a 8 ans | |
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')
Kind: Exported function
Example
Mac OSX
> getHomePath()
'/Users/Lloyd'
Ubuntu Linux
> getHomePath()
'/home/lloyd'
Windows 8.1
> getHomePath()
'C:\\Users\\Lloyd'
© 2015-17 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.