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

os-homedir Build Status

Node.js 4 os.homedir() ponyfill

Install

$ npm install --save os-homedir

Usage

const 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