Gaudenz Alder 7787addf43 6.6.2 release 8 年之前
..
jsdoc2md 7787addf43 6.6.2 release 8 年之前
lib 7787addf43 6.6.2 release 8 年之前
test 7787addf43 6.6.2 release 8 年之前
.npmignore 7787addf43 6.6.2 release 8 年之前
.travis.yml 7787addf43 6.6.2 release 8 年之前
LICENSE 7787addf43 6.6.2 release 8 年之前
README.md 7787addf43 6.6.2 release 8 年之前
package.json 7787addf43 6.6.2 release 8 年之前

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.