npm.devtool.tech
👏 You can access os-homedir package with using osHomedir variable in browser devtools!
Node.js 4 `os.homedir()` ponyfill

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

Deprecated

This is not needed anymore. Use require('os').homedir() instead.


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

🔎Explore Package🔎CDN Script

Score

Popularity51/100
Quality51/100
Maintenance48/100