lhl 6ff0e96ad3 8-4-1 1 anno fa
..
cli.js 6ff0e96ad3 8-4-1 1 anno fa
index.js 6ff0e96ad3 8-4-1 1 anno fa
license 6ff0e96ad3 8-4-1 1 anno fa
package.json 6ff0e96ad3 8-4-1 1 anno fa
readme.md 6ff0e96ad3 8-4-1 1 anno fa

readme.md

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.

CLI

$ npm install --global user-home
$ user-home --help

Example
  $ user-home
  /Users/sindresorhus

License

MIT © Sindre Sorhus