1 # os-homedir [![Build Status](https://travis-ci.org/sindresorhus/os-homedir.svg?branch=master)](https://travis-ci.org/sindresorhus/os-homedir)
3 > Node.js 4 [`os.homedir()`](https://nodejs.org/api/os.html#os_os_homedir) [ponyfill](https://ponyfill.com)
9 $ npm install --save os-homedir
16 const osHomedir = require('os-homedir');
18 console.log(osHomedir());
19 //=> '/Users/sindresorhus'
25 - [user-home](https://github.com/sindresorhus/user-home) - Same as this module but caches the result
26 - [home-or-tmp](https://github.com/sindresorhus/home-or-tmp) - Get the user home directory with fallback to the system temp directory
31 MIT © [Sindre Sorhus](https://sindresorhus.com)