Eric Foster 35b96bc934 initial commit 6 år sedan
..
index.js initial commit 6 år sedan
license initial commit 6 år sedan
package.json initial commit 6 år sedan
readme.md initial commit 6 år sedan

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