pkg-dir 6.0.1
Find the root directory of a Node.js project or npm package
pkg-dir@6.0.1 was published on 2021-10-06. Its manifest declares 1 runtime dependency and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is ^12.20.0 || ^14.13.1 || >=16.0.0.
All pkg-dir versions · Permanent reference to 6.0.1 · Latest release
Package specifications
| Version | 6.0.1 |
|---|---|
| License declaration | MIT |
| Published | 2021-10-06T05:27:37.375Z |
| Node.js requirement | ^12.20.0 || ^14.13.1 || >=16.0.0 |
| Type declarations | Not declared |
| 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 | 5.21 KiB |
| Published file count | 5 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 6 |
| Repository stars | 254 |
| Repository forks | 21 |
Install pkg-dir 6.0.1
npm install pkg-dir@6.0.1 pnpm add pkg-dir@6.0.1 yarn add pkg-dir@6.0.1
Runtime dependencies
- find-up ^6.1.0
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.
- find-up@6.3.0 — direct
- locate-path@7.2.0 — indirect
- p-limit@4.0.0 — indirect
- p-locate@6.0.0 — indirect
- path-exists@5.0.0 — indirect
- 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.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
|---|---|
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| Code-Review | 2/10 — Found 8/30 approved changesets -- score normalized to 2 |
| Security-Policy | 10/10 — security policy file detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/pkg-dir/6.0.1 — retrieved 2026-10-29T11:41:11.813Z
- https://api.deps.dev/v3/projects/github.com%2Fsindresorhus%2Fpkg-dir — retrieved 2026-10-29T07:15:27.951Z
- https://api.deps.dev/v3/systems/npm/packages/pkg-dir/versions/6.0.1:dependencies — retrieved 2026-10-29T11:41:12.317Z
- https://api.deps.dev/v3/systems/npm/packages/pkg-dir/versions/6.0.1 — retrieved 2026-10-29T11:41:12.311Z