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
31K
decreased by-3.32%
Maintainers
1
Install size
5.52 kB
Created
Weekly downloads
 

Readme

Source

view on npm npm module downloads per month Build Status Dependency Status

home-path

Cross-platform home directory retriever, tested on Windows XP, Windows 8.1, Mac OSX, Linux. Will use the built-in os.homedir if available.

getHomePath() ⏏

Kind: Exported function
Example
Mac OSX & Linux

> var getHomePath = require("home-path");
> getHomePath()
'/Users/Lloyd'

Windows 8.1

> var getHomePath = require("home-path");
> getHomePath()
'C:\\Users\\Lloyd'

© 2015 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.

Keywords

FAQs

Last updated on 25 Sep 2015

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