Vigia

npm · npm:pkg-dir

pkg-dir deprecated

Find the root directory of a Node.js project or npm package

The latest stable version of pkg-dir is 9.0.0, published on 2025-06-05. Verified by Vigia on 2026-11-12.

Latest stable version9.0.0
Published2025-06-05 18:33:38 UTC
Installnpm install pkg-dir@latest
DeprecationRenamed to `package-directory`.
Requires (engines){"node":">=18"}
Peer dependencies—
Dist-tagslatest: 9.0.0
LicenseMIT
Advisories on latest versionnone known
Last verified2026-11-12 13:35:09 UTC
Sourcesapi.deps.dev, registry.npmjs.org, registry.npmjs.org

Is your project affected?

Check my whole package.jsonGet notified of new versions (Atom)Facts for my AGENTS.md

Free, no signup. Paste your manifest and see what is outdated, deprecated or vulnerable.

Maintenance

Activityslowing down
Last stable release2025-06-05 18:33:38 UTC · 525 days ago
Stable releases in the last 12 months0
Published versions12

Heuristic based only on release dates; it does not measure issue or security response times.

Version history

VersionPublished
9.0.0 withdrawn2025-06-05 18:33:38 UTC
8.0.02023-11-03 20:02:47 UTC
7.0.02022-08-16 17:52:18 UTC
6.0.12021-10-06 05:27:37 UTC
6.0.02021-10-02 05:55:52 UTC
5.0.02020-10-16 14:55:24 UTC
4.2.02019-05-21 09:35:48 UTC
4.1.02019-04-05 06:33:59 UTC
4.0.02019-03-12 08:53:41 UTC
3.0.02018-06-18 11:43:02 UTC
2.0.02017-05-04 15:39:08 UTC
1.0.02015-09-01 07:59:42 UTC

Showing the 12 most recent of 12 versions. JSON

Version compatibility

Newest stable version that declares support for each runtime version (from the requirements published with each version).

RuntimeNewest compatible version
node 167.0.0
node 188.0.0
node 208.0.0
node 228.0.0
node 248.0.0

Give your AI agent these facts

Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Add to CursorAdd to VS Code★ Star on GitHub

Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests

Frequently asked questions

What is the latest version of pkg-dir?

The latest stable version of pkg-dir is 9.0.0, published on 2025-06-05. Verified by Vigia on 2026-11-12.

How do I install the latest version of pkg-dir?

Run npm install pkg-dir@latest. The latest stable version is 9.0.0 (verified 2026-11-12).

Is pkg-dir deprecated?

Yes. The registry marks pkg-dir as deprecated. Message from the maintainers: "Renamed to `package-directory`."

Which Node.js version does pkg-dir require?

pkg-dir 9.0.0 declares this requirement: {"node":">=18"}.

Does pkg-dir 9.0.0 have known vulnerabilities?

No known advisories affect pkg-dir 9.0.0 according to the data Vigia checks.

Is pkg-dir still maintained?

pkg-dir published 0 stable releases in the last 12 months; the most recent was 525 days ago. Activity: slowing down.

Observed changes

No changes observed yet since Vigia started tracking this package.

Related packages

Badges for your README

Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:

[![version](https://vigia.coredls.cloud/badge/npm/pkg-dir/version.svg)](https://vigia.coredls.cloud/npm/pkg-dir)
[![maintained](https://vigia.coredls.cloud/badge/npm/pkg-dir/maintained.svg)](https://vigia.coredls.cloud/npm/pkg-dir)
[![status](https://vigia.coredls.cloud/badge/npm/pkg-dir/status.svg)](https://vigia.coredls.cloud/npm/pkg-dir)

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/pkg-dir
GET https://vigia.coredls.cloud/v1/packages/npm/pkg-dir/versions/{version}