{"id":19342247,"url":"https://github.com/bolasblack/find-project-root","last_synced_at":"2025-10-05T02:22:55.309Z","repository":{"id":138268411,"uuid":"90284382","full_name":"bolasblack/find-project-root","owner":"bolasblack","description":"recursively find the closest specified file","archived":false,"fork":false,"pushed_at":"2017-05-05T02:34:14.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T08:47:55.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bolasblack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-05-04T16:19:05.000Z","updated_at":"2017-05-04T16:20:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b6bb8a8-4da6-4db9-8833-4a950189156c","html_url":"https://github.com/bolasblack/find-project-root","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bolasblack/find-project-root","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolasblack%2Ffind-project-root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolasblack%2Ffind-project-root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolasblack%2Ffind-project-root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolasblack%2Ffind-project-root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bolasblack","download_url":"https://codeload.github.com/bolasblack/find-project-root/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolasblack%2Ffind-project-root/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278399691,"owners_count":25980334,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-10T03:34:14.031Z","updated_at":"2025-10-05T02:22:55.281Z","avatar_url":"https://github.com/bolasblack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# find-project-root\n\nRecommend use https://github.com/sindresorhus/find-up instead.\n\nRecursively find the closest specified file.\n\n## Usage\n\n```javascript\nconst assert = require('assert')\nconst findRoot = require('find-project-root')\n\nfindRoot('./node_modules/mocha', '.git').then(path =\u003e {\n  assert.equal(path, '')\n})\n```\n\n## findRoot(startingPath, [filename, [cb]])\n\n* `startingPath` `{String}` the starting path to search, default: `module.parent.filename`\n* `filename` `{String}` the searching file name, default: `package.json`\n* `cb` `{Function}`\n    * `err` `{Error | null}`\n    * `path` `{String | null}` the path been found\n* return `{Promise\u003cString | null\u003e}`\n\n## findRoot.sync(startingPath, [filename])\n\n* `startingPath` `{String}` the starting path to search, default: `module.parent.filename`\n* `filename` `{String}` the searching file name, default: `package.json`\n* return `{String | null}` the path been found\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolasblack%2Ffind-project-root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolasblack%2Ffind-project-root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolasblack%2Ffind-project-root/lists"}