chuwanghui 6d115466a5 electron库 6 years ago
..
jsdoc2md 6d115466a5 electron库 6 years ago
lib 6d115466a5 electron库 6 years ago
test 6d115466a5 electron库 6 years ago
.npmignore 6d115466a5 electron库 6 years ago
.npminstall.done 6d115466a5 electron库 6 years ago
.travis.yml 6d115466a5 electron库 6 years ago
LICENSE 6d115466a5 electron库 6 years ago
README.md 6d115466a5 electron库 6 years ago
package.json 6d115466a5 electron库 6 years ago

README.md

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-17 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.