pkg-dir
For pkg-dir, latest published version is 9.0.0; maintainer's deprecation message is Renamed to `package-directory`; named replacement is package-directory, recorded from its source on 2026-11-16; source re-checked 2026-12-02.
- Package
- pkg-dir
- Latest published version
- 9.0.0
- Maintainer's deprecation message
- Renamed to `package-directory`. verified
- Named replacement
- package-directory our reading
Values marked our reading are our classification of what the source says — the source does not print them in those words. The quote below is the evidence for each one; judge it yourself.
Cite as: pkg-dir — Deprecated npm packages and their maintainer-named replacement (Deprecated npm packages and their maintainer-named replacement), referencesource.org/npm-deprecated-package-recommended-replacement/pkg-dir/, checked 2026-12-02.
What the source says
"deprecated":"Renamed to `package-directory`."— registry.npmjs.org, retrieved 2026-11-16
Source
- registry.npmjs.orghttps://registry.npmjs.org/pkg-dir
Open the page on registry.npmjs.org that states this — the page quoted above, at its publisher. Unpaid: we earn nothing from this link and it is not an advertisement.
Does a package.json, package-lock.json, yarn.lock or pnpm-lock.yaml in your repository still ask for pkg-dir? npx deprecated-dep-check names every deprecated dependency a repository states, direct or pulled in by something else, and prints the maintainer's own message and the replacement named inside it, from these records. It installs nothing, makes no network request, and exits non-zero on a finding, so it can run as a CI check. deprecated-dep-check on npm