1 # os-homedir [![Build Status](https://travis-ci.org/sindresorhus/os-homedir.svg?branch=master)](https://travis-ci.org/sindresorhus/os-homedir)
3 > io.js 2.3.0 [`os.homedir()`](https://iojs.org/api/os.html#os_os_homedir) ponyfill
5 > Ponyfill: A polyfill that doesn't overwrite the native method
11 $ npm install --save os-homedir
18 var osHomedir = require('os-homedir');
20 console.log(osHomedir());
21 //=> /Users/sindresorhus
27 - [user-home](https://github.com/sindresorhus/user-home) - Same as this module but caches the result
28 - [home-or-tmp](https://github.com/sindresorhus/home-or-tmp) - Get the user home directory with fallback to the system temp directory
33 MIT © [Sindre Sorhus](http://sindresorhus.com)