Name Last Update
..
index.js Loading commit data...
license Loading commit data...
package.json Loading commit data...
readme.md Loading commit data...

os-homedir Build Status

io.js 2.3.0 os.homedir() ponyfill

Ponyfill: 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