Christian Fraß Christian Fraß [mod] server 657e9a9 @ 2021-03-12 22:02:17
..
index.js [add] server:lib:node_modules 2021-03-08 23:52:07
license [add] server:lib:node_modules 2021-03-08 23:52:07
package.json [add] server:lib:node_modules 2021-03-08 23:52:07
readme.md [add] server:lib:node_modules 2021-03-08 23:52:07
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