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

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
Details
npm
2026-02-24 14:02:13 +00:00
0
Sindre Sorhus
MIT
latest
1.7 KiB
Assets (1)
Versions (1) View all
1.0.2 2026-02-24