# is-root-path

> Check if a path is the root path. Example: `/` or `C:\`

Latest version **3.0.0** (published 2021-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-root-path
pnpm add is-root-path
yarn add is-root-path
bun add is-root-path
```

## Health

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

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2021-08-10 |
| First published | 2015-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-root-path) |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | root, path, directory, top, level, absolute, check, detect, is |

## Links

- npm: https://www.npmjs.com/package/is-root-path
- Repository: https://github.com/sindresorhus/is-root-path
- Homepage: https://github.com/sindresorhus/is-root-path#readme
- Issues: https://github.com/sindresorhus/is-root-path/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/is-root-path

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2021-08-10
- 2.0.0 — 2019-04-20
- 1.0.0 — 2015-05-09

## README

# is-root-path

> Check if a path is the root path. Example: `/` or `C:\`

## Install

```
$ npm install is-root-path
```

## Usage

```js
import isRootPath from 'is-root-path';

isRootPath('/');
//=> true

isRootPath('/Users');
//=> false
```

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