# home-dir

> Get home directory path on any platform

Latest version **1.0.0** (published 2015-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install home-dir
pnpm add home-dir
yarn add home-dir
bun add home-dir
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-01-21 |
| First published | 2013-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Scott Corgan |
| Maintainers | scottcorgan |
| Keywords | home, directory, user, path |

## Links

- npm: https://www.npmjs.com/package/home-dir
- Repository: https://github.com/scottcorgan/home-dir
- Issues: https://github.com/scottcorgan/home-dir/issues
- npm.io page: https://npm.io/package/home-dir

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-01-21
- 0.2.0 — 2014-05-28
- 0.1.2 — 2013-11-07
- 0.1.1 — 2013-11-05
- 0.1.0 — 2013-11-05

## README

# home-dir

Get home directory path on any platform

## Install

```
npm install home-dir --save
```

## Usage

```javascript
var homeDir = require('home-dir');

console.log(homeDir()); // Outputs full path to your home directory

// OR

var dir = homeDir('/path/to/somehwere');
console.log(dir) // OUTPUTS: /(HOME)/path/to/somewhere

// OR

var homeDir = require('home-dir').directory;
```

---
_Source: https://npm.io/package/home-dir · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
