吕君喜 406d880ac6 first il y a 3 ans
..
index.js 406d880ac6 first il y a 3 ans
license 406d880ac6 first il y a 3 ans
package.json 406d880ac6 first il y a 3 ans
readme.md 406d880ac6 first il y a 3 ans

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