js-n

js-n/find-root

recursively find the closest package.json

JavaScript
47
5
MIT License

`find-root` is a utility that recursively searches upward from a given directory to locate the nearest directory containing a `package.json` file, returning its path. It can also accept a custom check function to find the closest parent directory matching specific criteria, such as a Git repository. This tool is designed for Node.js developers who need to programmatically determine the root directory of a project from within nested subdirectories.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

junosuarez's profile
junosuarez
16 contributions
zwhitchcox's profile
zwhitchcox
1 contributions

Recent events

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

No events yet