430da91dd3b4eb9b36baea751cbf9d2b5862b6d31e258a5f6d3571a90b25df63ad29c655c4d4a376baf04853650053f564cbcd16d8d44b491a2d53ff7ed82b 617 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # user-home [![Build Status](https://travis-ci.org/sindresorhus/user-home.svg?branch=master)](https://travis-ci.org/sindresorhus/user-home)
  2. > Get the path to the user home directory
  3. ## Install
  4. ```sh
  5. $ npm install --save user-home
  6. ```
  7. ## Usage
  8. ```js
  9. var userHome = require('user-home');
  10. console.log(userHome);
  11. //=> /Users/sindresorhus
  12. ```
  13. Returns `null` in the unlikely scenario that the home directory can't be found.
  14. ## CLI
  15. ```sh
  16. $ npm install --global user-home
  17. ```
  18. ```sh
  19. $ user-home --help
  20. Example
  21. $ user-home
  22. /Users/sindresorhus
  23. ```
  24. ## License
  25. MIT © [Sindre Sorhus](http://sindresorhus.com)