# @manypkg/find-root

> > Find the root of a monorepo with Yarn workspaces, npm, Lerna, pnpm, Bun or Rush

Latest version **3.1.0** (published 2025-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @manypkg/find-root
pnpm add @manypkg/find-root
yarn add @manypkg/find-root
bun add @manypkg/find-root
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2025-07-25 |
| First published | 2020-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.0.0 |
| Dependencies | 1 |
| Unpacked size | 23 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1045 |
| Maintainers | manypkg-release-bot, emmatown |

## Links

- npm: https://www.npmjs.com/package/@manypkg/find-root
- Repository: https://github.com/Thinkmill/manypkg
- Homepage: https://github.com/Thinkmill/manypkg#readme
- Issues: https://github.com/Thinkmill/manypkg/issues
- npm.io page: https://npm.io/package/@manypkg/find-root

## Dependencies (1)

- [@manypkg/tools](https://npm.io/package/@manypkg/tools.md) ^2.1.0

## Recent versions

- 3.1.0 (latest) — 2025-07-25
- 3.0.0 — 2025-05-01
- 2.2.3 — 2024-08-10
- 2.2.2 — 2024-06-27
- 2.2.1 — 2023-06-27
- 2.2.0 — 2023-06-09
- 2.1.0 — 2023-01-31
- 2.0.0 — 2023-01-23
- 1.1.0 — 2020-06-25
- 1.0.0 — 2020-03-07

## README

# @manypkg/find-root

> Find the root of a monorepo with Yarn workspaces, npm, Lerna, pnpm, Bun or Rush

## Install

```bash
yarn add @manypkg/find-root
```

## Usage

```tsx
import { findRoot, findRootSync } from "@manypkg/find-root";

let dir = await findRoot(process.cwd());
let dir = findRootSync(process.cwd());
```

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