npm.io
3.1.0 • Published 11 months ago

@manypkg/find-root

Licence
MIT
Version
3.1.0
Deps
1
Size
23 kB
Vulns
0
Weekly
0
Stars
1.0K

@manypkg/find-root

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

Install

yarn add @manypkg/find-root

Usage

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

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