{"library":"workspace-root","type":"library","category":null,"description":"The `workspace-root` package provides a robust utility for programmatically identifying the root directory of a monorepo workspace. It supports various popular package managers and monorepo tools including Yarn, pnpm, Lerna, and Bun. The library exposes both synchronous (`workspaceRootSync`) and asynchronous (`workspaceRoot`) functions, allowing developers to choose the appropriate API for their context, with an optional `cwd` parameter to specify the starting search path. Currently stable at version 3.3.1, the package demonstrates a consistent release cadence with frequent minor updates and patches, and underwent a significant architectural refactor in version 3.0.0. Its primary differentiator is its broad compatibility across different monorepo configurations and package manager specifics, such as Yarn's `nohoist` option, ensuring accurate root detection even in complex setups.","language":"javascript","status":"active","version":"3.3.1","tags":["javascript","node-kit","workspace","lerna-workspace","pnpm-workspace","yarn-workspace","workspace-root","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install workspace-root","imports":["import { workspaceRoot } from 'workspace-root'","import { workspaceRootSync } from 'workspace-root'","import type { WorkspaceRootResult } from 'workspace-root'"]},{"cmd":"yarn add workspace-root","imports":[]},{"cmd":"pnpm add workspace-root","imports":[]}],"homepage":null,"github":"https://github.com/saqqdy/node-kit","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/workspace-root","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/workspace-root/compatibility"}}