</>PackageGraphPackageGraph

pkg-dir

npmv9.0.0TypeScriptDeprecated

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

Deprecation notice: Renamed to `package-directory`.

0
Weekly downloads
1
Dependents
5
Dependencies
2/100
Popularity

Overview

pkg-dir is a deprecated npm package that find the root directory of a Node.js project or npm package. The latest version is 9.0.0, released under the MIT license.

Who should use it

pkg-dir is deprecated and is best avoided for new projects. Existing users should plan a migration to a maintained alternative.

When not to use it

Do not adopt this package for new work — it is no longer maintained.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Marked deprecated: Renamed to `package-directory`.

Auto-generated from collected registry metadata. No external claims are inferred.

Relationship graph

Dependencies (left) and dependents (right) of pkg-dir.

import-localpkg-dir
pkg-dir dependencies dependents

Dependencies

Runtime (1)

find-up-simple ^1.0.0

Dev (4)

ava ^5.3.1tempy ^3.1.0tsd ^0.29.0xo ^0.56.0

Used by

Popular packages that depend on pkg-dir.

Alternatives to pkg-dir

Frequently installed together

Version history

VersionPublishedLicense
9.0.0latest1 year agoMIT
8.0.02 years agoMIT
7.0.03 years agoMIT
6.0.14 years agoMIT
6.0.04 years agoMIT
5.0.05 years agoMIT
4.2.07 years agoMIT
4.1.07 years agoMIT
4.0.07 years agoMIT
3.0.08 years agoMIT
2.0.09 years agoMIT
1.0.011 years agoMIT

Maintainers

Keywords

Funding

Frequently asked questions

How do I install pkg-dir?

Run `npm install pkg-dir` to add pkg-dir to your npm project.

What license is pkg-dir released under?

pkg-dir is distributed under the MIT license.

How popular is pkg-dir?

pkg-dir has approximately 0 downloads per week and 1 known dependent packages.

Is pkg-dir still maintained?

pkg-dir is marked as deprecated: Renamed to `package-directory`.. Consider a maintained alternative for new projects.