{"id":16138178,"url":"https://github.com/ul/project-root","last_synced_at":"2025-04-06T17:24:15.917Z","repository":{"id":146517063,"uuid":"182587895","full_name":"ul/project-root","owner":"ul","description":"A small utility to find project root.","archived":false,"fork":false,"pushed_at":"2019-04-21T22:23:15.000Z","size":2,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T12:07:32.209Z","etag":null,"topics":["cli","rust","rust-lang"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-21T22:18:18.000Z","updated_at":"2019-04-21T22:58:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a14861e-19fd-43ba-88c4-2b5c89b06e9c","html_url":"https://github.com/ul/project-root","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ul%2Fproject-root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ul%2Fproject-root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ul%2Fproject-root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ul%2Fproject-root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ul","download_url":"https://codeload.github.com/ul/project-root/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247519331,"owners_count":20951960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","rust","rust-lang"],"created_at":"2024-10-09T23:32:42.503Z","updated_at":"2025-04-06T17:24:15.899Z","avatar_url":"https://github.com/ul.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# project-root\n\nA small utility to find project root.\n\n## Installation\n\n```\n$ cargo install --force --git https://github.com/ul/project-root.git\n```\n\n## Usage\n\n```\n$ project-root \u003cNAME\u003e...\n```\n\nwhere `\u003cNAME\u003e...` is project root markers in priority order. Search starts from the current\ndirectory. When successful, `project-root` will print the path to the project root. Otherwise it\nwill just exit with the error code 1.\n\nFor example\n\n```\n$ project-root lerna.json package.json .git\n```\n\nwill try to find `lerna.json` while traversing up to the filesystem root in case current directory\nis inside of a Lerna-managed monorepo. If it fails, `project-root` will test for `package.json` then\nif it's a regular npm package. And as the last resort it will try to find Git repository root.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ful%2Fproject-root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ful%2Fproject-root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ful%2Fproject-root/lists"}