JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 44460
  • Score
    100M100P100Q9956F
  • License MIT

Cross-platform home directory retriever

Package Exports

  • home-path

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (home-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.