Socket
Socket
Sign inDemoInstall

home-path

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    home-path

Cross-platform home directory retriever


Version published
Weekly downloads
37K
decreased by-6.85%
Maintainers
1
Install size
5.40 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 15 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc