JSPM

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

Get the path to the user home directory

Package Exports

  • user-home

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 (user-home) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

user-home Build Status

Get the path to the user home directory

Install

$ npm install --save user-home

Usage

var userHome = require('user-home');

console.log(userHome);
//=> '/Users/sindresorhus'

Returns null in the unlikely scenario that the home directory can't be found.

  • user-home-cli - CLI for this module
  • home-or-tmp - Get the user home directory with fallback to the system temp directory

License

MIT © Sindre Sorhus