{"id":14155391,"url":"https://github.com/groupon/gh-grep","last_synced_at":"2025-05-08T21:38:46.812Z","repository":{"id":66170838,"uuid":"527328972","full_name":"groupon/gh-grep","owner":"groupon","description":"GitHub CLI grep extension","archived":false,"fork":false,"pushed_at":"2022-08-23T21:07:50.000Z","size":139,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-08-17T08:05:15.172Z","etag":null,"topics":["gh-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/groupon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2022-08-21T21:18:19.000Z","updated_at":"2024-08-17T08:05:17.843Z","dependencies_parsed_at":"2023-04-13T18:17:37.840Z","dependency_job_id":null,"html_url":"https://github.com/groupon/gh-grep","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupon%2Fgh-grep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupon%2Fgh-grep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupon%2Fgh-grep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groupon%2Fgh-grep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/groupon","download_url":"https://codeload.github.com/groupon/gh-grep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228821405,"owners_count":17977166,"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":["gh-extension"],"created_at":"2024-08-17T08:03:00.938Z","updated_at":"2024-12-09T02:31:21.007Z","avatar_url":"https://github.com/groupon.png","language":"TypeScript","funding_links":[],"categories":["gh-extension"],"sub_categories":[],"readme":"[![nlm-github](https://img.shields.io/badge/github-groupon%2Fgh--grep%2Fissues-F4D03F?logo=github\u0026logoColor=white)](https://github.com/groupon/gh-grep/issues)\n![nlm-node](https://img.shields.io/badge/node-%3E%3D14-blue?logo=node.js\u0026logoColor=white)\n![nlm-version](https://img.shields.io/badge/version-1.0.0-blue?logo=version\u0026logoColor=white)\n# GitHub CLI \"grep\" Extension\n\n## Requirements\n\n* [GitHub CLI](https://cli.github.com/)\n* [NodeJS](https://nodejs.org/) \u003e= 14.x\n\n## Installation\n\n```\n$ gh extension install groupon/gh-grep\n```\n\nThe first time you run `gh grep` additional dependencies will be automatically\ninstalled.\n\n## Usage\n\n```\n$ gh grep [options] \u003cpattern\u003e path/in/repos/to/file [owner1/repo1 [owner2/repo2 [...]]]\n$ gh grep [options] \u003cpattern\u003e '[' path/to/file1 path/to/file2 ']' [owner1/repo1 [...]]\n```\n\nThis command greps files in GitHub repos, without checking out the repo.\nUse `--help` to see all of the options.\n\n`pattern` is a JavaScript-compatible regexp string.\n\nIf you wish to grep multiple files, you must enclose them in `'['` and `']'`\narguments to separate them from the list of owner/repos.\n\nIf you omit the repos to search, it will do an implicit GH code search first\nto get a list of repos to try the `grep` on.\n\n## Examples\n\nFind uses of `lodash` as a dependency in a few different repos:\n\n```\n$ gh grep lodash package.json groupon/gofer groupon/gofer-openapi testiumjs/testium-driver-wd\ngroupon/gofer-openapi:     \"lodash.camelcase\": \"^4.3.0\",\ngroupon/gofer-openapi:     \"lodash.upperfirst\": \"^4.3.1\",\ngroupon/gofer-openapi:     \"@types/lodash.camelcase\": \"^4.3.6\",\ngroupon/gofer-openapi:     \"@types/lodash.upperfirst\": \"^4.3.6\",\ngroupon/gofer:     \"lodash.isplainobject\": \"^4.0.6\",\ngroupon/gofer:     \"lodash.merge\": \"^4.6.2\",\ngroupon/gofer:     \"lodash.mergewith\": \"^4.6.2\"\ntestiumjs/testium-driver-wd:     \"lodash.method\": \"^4.5.2\",\n```\n\nFind a term in specific files in any repo on a private GitHub instance\n(performs a search first)\n\n```\n$ GH_HOST=github.example.com gh grep kittens \\[ README.md CHANGELOG.md \\]\norg1/repo1: README.md: But the kittens are here\norg1/repo1: CHANGELOG.md: Removed kittens after\norg2/repo2: CHANGELOG.md: Added kittens because\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroupon%2Fgh-grep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgroupon%2Fgh-grep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroupon%2Fgh-grep/lists"}