root-pkg-dir
Find the highest directory with a package.json, starting from from the current working directory.
root-pkg-dir@1.0.0 was published on 2023-07-24. Its manifest declares 1 runtime dependency and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is ^14.13.1 || >=16.0.0.
All root-pkg-dir versions · Permanent reference to 1.0.0
Package specifications
| Version | 1.0.0 |
|---|---|
| License declaration | MIT |
| Published | 2023-07-24T23:09:56.093Z |
| Node.js requirement | ^14.13.1 || >=16.0.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 4.05 KiB |
| Published file count | 4 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | .auto/build/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 5 |
| Repository stars | 1 |
| Repository forks | 0 |
Install root-pkg-dir 1.0.0
npm install root-pkg-dir@1.0.0 pnpm add root-pkg-dir@1.0.0 yarn add root-pkg-dir@1.0.0
Runtime dependencies
- root-pkg-json ^1.0.2
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- locate-path@7.2.0 — indirect
- p-limit@4.0.0 — indirect
- p-locate@6.0.0 — indirect
- root-pkg-json@1.0.2 — direct
- yocto-queue@1.2.2 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Evidence and freshness
- https://registry.npmjs.org/root-pkg-dir/1.0.0 — retrieved 2026-10-31T08:58:21.504Z
- https://api.deps.dev/v3/systems/npm/packages/root-pkg-dir/versions/1.0.0 — retrieved 2026-10-31T08:58:21.906Z
- https://api.deps.dev/v3/systems/npm/packages/root-pkg-dir/versions/1.0.0:dependencies — retrieved 2026-10-31T08:58:21.929Z
- https://api.deps.dev/v3/projects/github.com%2Fbconnorwhite%2Froot-pkg-dir — retrieved 2026-10-31T08:58:22.391Z