Philipp Horstenkamp 6f5fd0fbf5
All checks were successful
Lint / pre-commit Linting (push) Successful in 25s
Dependency update
2025-04-08 22:08:47 +02:00
..
2025-04-08 22:08:47 +02:00
2025-04-08 22:08:47 +02:00
2025-04-08 22:08:47 +02:00
2025-04-08 22:08:47 +02:00

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'
  • 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