os-homedir (1.0.2)
Published 2026-02-24 14:02:13 +00:00 by atheaadmin
Installation
registry=npm install os-homedir@1.0.2"os-homedir": "1.0.2"About this package
os-homedir 
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
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| ava | * |
| path-exists | ^2.0.0 |
| xo | ^0.16.0 |
Keywords
builtin
core
ponyfill
polyfill
shim
os
homedir
home
dir
directory
folder
user
path