1.0.7 • Published 5 years ago

home-path v1.0.7

Weekly downloads
56,733
License
MIT
Repository
github
Last release
5 years ago

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