sindresorhus

sindresorhus/pkg-dir

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

JavaScript
252
21
MIT License

This package finds the root directory of a Node.js project or npm package by searching upward from a given directory until it locates a `package.json` file. It's designed for developers working on Node.js projects who need to programmatically determine the project's root directory, such as when building tools or scripts that need to operate relative to the project structure.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of sindresorhus/pkg-dir

Account's avatar
Node.js test runner that lets you develop with confidence.

Support the repos that depend on sindresorhus/pkg-dir

Top contributors

sindresorhus's profile
sindresorhus
32 contributions
coreyfarrell's profile
coreyfarrell
2 contributions
BendingBender's profile
BendingBender
2 contributions
jimmywarting's profile
jimmywarting
1 contributions
kellyselden's profile
kellyselden
1 contributions
LinusU's profile
LinusU
1 contributions
Richienb's profile
Richienb
1 contributions
SamVerschueren's profile
SamVerschueren
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet