repo-root
Find the root directory of a project.
CLI
Library
Supported project types
- git:
.git
dir - Docker:
Dockerfile
file - NodeJS:
package.json
file - Rust:
Cargo.toml
file - Python:
pyproject.toml
file - Nix:
flake.nix
file
Find the root directory of a project.
cargo install repo-root
cargo add repo-root
.git
dirDockerfile
filepackage.json
fileCargo.toml
filepyproject.toml
fileflake.nix
file