os-homedir
io.js 2.3.0
os.homedir()
ponyfillPonyfill: A polyfill that doesn't overwrite the native method
Install
$ npm install --save os-homedir
Usage
var osHomedir = require('os-homedir');
console.log(osHomedir());
//=> /Users/sindresorhus
Related
- user-home - Same as this module but caches the result
- home-or-tmp - Get the user home directory with fallback to the system temp directory
License
MIT © Sindre Sorhus