* Fix workflow * Trigger * [auto] Update compiled version * [auto] Commit modules * Push Windows changes * Fix * [auto] Update compiled version * Try removing cwd * [auto] Update compiled version * Try with path module * [auto] Update compiled version * Fix path * [auto] Update compiled version * Use raw path * [auto] Update compiled version * Other path * [auto] Update compiled version * Avoid @action/exec * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * Try with shelljs * [auto] Update compiled version * Fix my stupidity * Copy scripts to local dir * [auto] Update compiled version * Still use path * [auto] Update compiled version * Delete entrypoint.sh * [auto] Update compiled version * Make file executable * [auto] Update compiled version * Try using bash * [auto] Update compiled version
32 lines
735 B
Markdown
32 lines
735 B
Markdown
# os-homedir [](https://travis-ci.org/sindresorhus/os-homedir)
|
|
|
|
> Node.js 4 [`os.homedir()`](https://nodejs.org/api/os.html#os_os_homedir) [ponyfill](https://ponyfill.com)
|
|
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install --save os-homedir
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const osHomedir = require('os-homedir');
|
|
|
|
console.log(osHomedir());
|
|
//=> '/Users/sindresorhus'
|
|
```
|
|
|
|
|
|
## Related
|
|
|
|
- [user-home](https://github.com/sindresorhus/user-home) - Same as this module but caches the result
|
|
- [home-or-tmp](https://github.com/sindresorhus/home-or-tmp) - Get the user home directory with fallback to the system temp directory
|
|
|
|
|
|
## License
|
|
|
|
MIT © [Sindre Sorhus](https://sindresorhus.com)
|