{"id":13681930,"url":"https://github.com/kyoshidajp/ghkw","last_synced_at":"2025-04-05T12:07:48.173Z","repository":{"id":144202287,"uuid":"120071055","full_name":"kyoshidajp/ghkw","owner":"kyoshidajp","description":"Search how many keywords in GitHub Code tool","archived":false,"fork":false,"pushed_at":"2020-02-29T07:46:30.000Z","size":39,"stargazers_count":607,"open_issues_count":3,"forks_count":7,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T11:09:51.013Z","etag":null,"topics":["git","github","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kyoshidajp.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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}},"created_at":"2018-02-03T07:54:52.000Z","updated_at":"2025-02-11T12:01:25.000Z","dependencies_parsed_at":"2023-06-18T12:18:55.010Z","dependency_job_id":null,"html_url":"https://github.com/kyoshidajp/ghkw","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoshidajp%2Fghkw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoshidajp%2Fghkw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoshidajp%2Fghkw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoshidajp%2Fghkw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyoshidajp","download_url":"https://codeload.github.com/kyoshidajp/ghkw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332609,"owners_count":20921853,"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":["git","github","golang"],"created_at":"2024-08-02T13:01:37.868Z","updated_at":"2025-04-05T12:07:48.153Z","avatar_url":"https://github.com/kyoshidajp.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# ghkw\n\n[![GitHub release](https://img.shields.io/github/release/kyoshidajp/ghkw.svg?style=flat-square)][release]\n[![Travis](https://travis-ci.org/kyoshidajp/ghkw.svg?branch=master)](https://travis-ci.org/kyoshidajp/ghkw)\n[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][godocs]\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]\n\n[release]: https://github.com/kyoshidajp/ghkw/releases\n[license]: https://github.com/kyoshidajp/ghkw/blob/master/LICENSE\n[godocs]: http://godoc.org/github.com/kyoshidajp/ghkw\n\n**ghkw** is **G**it**H**ub **K**ey**W**ord.\n\nSearch how many keywords in GitHub Code by GitHub API.\n\n## Usage\n\n```\n$ ghkw [options...] [keyword ...]\n```\n\n### Example\n\nOutput markdown format.\n\n```\n$ ghkw exclusion_condition exclude_condition excluded_condition\n| RANK |       KEYWORD       | TOTAL |\n|------|---------------------|-------|\n|    1 | exclude_condition   |   272 |\n|    2 | exclusion_condition |    64 |\n|    3 | excluded_condition  |     2 |\n```\n\nA search condition is in the file contents, language is javascript and file size is over 1,000bytes.\n\n```\n$ ghkw --in=file --language=javascript --size=\"\u003e1000\" exclude_condition exclusion_condition\n```\n\n### Options\n\n```\n--in           Add in to search term.\n\n--language     Add language to search term.\n\n--fork         Add fork to search term.\n\n--size         Add size to search term.\n\n--path         Add path to search term.\n\n--filename     Add filename to search term.\n\n--extension    Add extension to search term.\n\n--user         Add user to search term.\n\n--repo         Add repo to search term.\n\n-d, --debug    Enable debug mode.\n               Print debug log.\n\n-f, --format   Output format (markdown, json).\n               default: markdown\n\n-h, --help     Show this help message and exit.\n\n-v, --version  Print current version.\n```\n\n*NOTE*: Set Github Access Token which has \"Full control of private repositories\" scope as an environment variable `GITHUB_TOKEN`. If not set, `ghkw` requires your Github username and password(and two-factor auth code if you are setting). Because of using [GitHub API v3](https://developer.github.com/v3/).\n\n## Install\n\n### Homebrew\n\nIf you have already installed [Homebrew](http://brew.sh/); then can install by brew command.\n\n```\n$ brew tap kyoshidajp/ghkw\n$ brew install ghkw\n```\n\n### go get\n\nIf you are a Golang developper/user; then execute `go get`.\n\n```\n$ go get -u github.com/kyoshidajp/ghkw\n```\n\n### Manual\n\n1. Download binary which meets your system from [Releases](https://github.com/kyoshidajp/ghkw/releases).\n1. Unarchive it.\n1. Put `ghkw` where you want.\n1. Add `ghkw` path to `$PATH`.\n\n## Author\n\n[Katsuhiko YOSHIDA](https://github.com/kyoshidajp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoshidajp%2Fghkw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyoshidajp%2Fghkw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoshidajp%2Fghkw/lists"}