huituanxueqian 7740728225 commit hai 1 ano
..
index.js 7740728225 commit hai 1 ano
license 7740728225 commit hai 1 ano
package.json 7740728225 commit hai 1 ano
readme.md 7740728225 commit hai 1 ano

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