tree: 0f7cf7f1dced822314dda8e70a41c32984a9569e [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/os-homedir/readme.md

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