resolve-workspace-root
npmv2.0.1TypeScriptResolve the workspace root using bun, npm, pnpm, or yarn
Safe to adopt
Yes — resolve-workspace-root scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 247 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 247 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 101 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding resolve-workspace-root to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the resolve-workspace-root README.
import { resolveWorkspaceRoot, resolveWorkspaceRootAsync } from 'resolve-workspace-root';
// Synchronous lookup, supporting bun, npm, pnpm, and yarn
const workspaceRoot = resolveWorkspaceRoot(__dirname);
// Synchronous lookup, supporting only bun, npm, and yarn
const workspaceRoot = resolveWorkspaceRoot(__dirname, { packageWorkspaces: false });
// Synchronous lookup, supporting only pnpm
const workspaceRoot = resolveWorkspaceRoot(__dirname, { pnpmWorkspaces: false });
// Asynchronous lookup, supporting bun, npm, pnpm, and yarn
const workspaceRoot = await resolveWorkspaceRootAsync(__dirname);
// Asynchronous lookup, supporting only bun, npm, and yarn
const workspaceRoot = await resolveWorkspaceRootAsync(__dirname, { packageWorkspaces: false });
// Asynchronous lookup, supporting only pnpmresolve-workspace-root vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| resolve-workspace-rootthis page | 0 | 3 | MIT | 8 months ago |
| @expo/package-manager | 0 | 1 | MIT | 4 days ago |
| sql-escaper | 4.9M | 1 | MIT | 4 days ago |
| pkg-dirdeprecated | 0 | 1 | MIT | 4 days ago |
| jest-pnp-resolver | 0 | 1 | MIT | 4 days ago |
| jose | 0 | 2 | MIT | 4 days ago |
Dependencies
Declared by resolve-workspace-root v2.0.1. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (13)
Used by
Popular packages that depend on resolve-workspace-root.
Relationship graph
Dependencies (left) and dependents (right) of resolve-workspace-root.
Frequently installed together
The Expo SDK
A framework for building native apps using React
A Promise-based interface into processes created by child_process.spawn
React is a JavaScript library for building user interfaces.
TypeScript definitions for react
TypeScript definitions for node
Mac OS X Plist parser/builder for Node.js and browsers
A module for reading, writing, and manipulating JSON files
Types for the Expo config object app.config.ts
The semantic version parser used by npm.
the most correct and second fastest glob implementation in JavaScript
A library for deep (recursive) merging of Javascript objects
Release history
1 release in the last two years, typically about 48 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.1latest | 8 months ago | 101 KB | MIT |
| 2.0.0 | 1 year ago | 101 KB | MIT |
| 1.0.1 | 2 years ago | 99 KB | MIT |
| 1.0.0 | 2 years ago | 99 KB | MIT |
Overview
resolve-workspace-root is an npm package that resolve the workspace root using bun, npm, pnpm, or yarn. It has 3 known dependents in the graph. The latest version is 2.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need resolve the workspace root using bun, npm, pnpm, or yarn and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use resolve-workspace-root?
Yes — resolve-workspace-root scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 247 days ago. 2 releases in the last 2 years.
How do I install resolve-workspace-root?
Run `npm install resolve-workspace-root` to add resolve-workspace-root to your npm project.
What license is resolve-workspace-root released under?
resolve-workspace-root is distributed under the MIT license.
How popular is resolve-workspace-root?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on resolve-workspace-root.
Is resolve-workspace-root still maintained?
The most recent release of resolve-workspace-root (v2.0.1) was published 8 months ago.
Does resolve-workspace-root run install scripts?
No. resolve-workspace-root does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.