{"id":13530351,"url":"https://github.com/sindresorhus/package-directory-cli","last_synced_at":"2025-10-19T19:30:55.314Z","repository":{"id":55409508,"uuid":"41725649","full_name":"sindresorhus/pkg-dir-cli","owner":"sindresorhus","description":"Find the root directory of a Node.js project or npm package","archived":false,"fork":false,"pushed_at":"2023-11-04T08:46:46.000Z","size":10,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-04-14T11:09:15.444Z","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/sindresorhus.png","metadata":{"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"},"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}},"created_at":"2015-09-01T08:08:23.000Z","updated_at":"2024-01-17T09:33:16.000Z","dependencies_parsed_at":"2023-12-10T18:46:46.926Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/pkg-dir-cli","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.06666666666666665,"last_synced_commit":"f4a7c09ad09b75ca225e4c05eee21801d2f3750c"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpkg-dir-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpkg-dir-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpkg-dir-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpkg-dir-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/pkg-dir-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869272,"owners_count":16555575,"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":[],"created_at":"2024-08-01T07:00:48.581Z","updated_at":"2025-10-19T19:30:55.310Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Development","Other"],"sub_categories":["Npm","OS X"],"readme":"# package-directory-cli\n\n\u003e Find the root directory of a Node.js project or npm package\n\n## Install\n\n```sh\nnpm install --global package-directory-cli\n```\n\n## Usage\n\n```\n$ package-directory --help\n\n  Usage\n    $ package-directory \u003ccwd\u003e\n\n  Examples\n    $ echo $PWD\n    /Users/sindresorhus/foo/bar\n    $ package-directory\n    /Users/sindresorhus/foo\n```\n\n## Example\n\n```\n/\n└── Users\n    └── sindresorhus\n        └── foo\n            ├── package.json\n            └── bar\n                └── example.js\n```\n\n```\n$ echo $PWD\n/Users/sindresorhus/foo/bar\n$ package-directory\n/Users/sindresorhus/foo\n```\n\n## Related\n\n- [package-directory](https://github.com/sindresorhus/package-directory) - API for this package\n- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - Find a file by walking up parent directories\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fpackage-directory-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fpackage-directory-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fpackage-directory-cli/lists"}