{"id":21744539,"url":"https://github.com/cdoco/grank","last_synced_at":"2025-04-13T05:12:04.647Z","repository":{"id":57253089,"uuid":"110916712","full_name":"cdoco/grank","owner":"cdoco","description":":boom: github rank cli","archived":false,"fork":false,"pushed_at":"2018-06-14T21:48:52.000Z","size":163,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T22:04:08.407Z","etag":null,"topics":["cli","github-api","github-rank","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/grank","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/cdoco.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}},"created_at":"2017-11-16T03:13:33.000Z","updated_at":"2024-10-22T09:57:34.000Z","dependencies_parsed_at":"2022-08-31T22:20:25.480Z","dependency_job_id":null,"html_url":"https://github.com/cdoco/grank","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/cdoco%2Fgrank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdoco%2Fgrank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdoco%2Fgrank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdoco%2Fgrank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdoco","download_url":"https://codeload.github.com/cdoco/grank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665744,"owners_count":21142123,"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","github-api","github-rank","nodejs"],"created_at":"2024-11-26T07:11:52.164Z","updated_at":"2025-04-13T05:12:04.625Z","avatar_url":"https://github.com/cdoco.png","language":"JavaScript","readme":"\u003cdiv align=center\u003e\n    \u003cp\u003e\u003cimg src=\"https://cdoco.com/images/grank.png\" alt=\"grank\"/\u003e\u003c/p\u003e\n    \u003ca target=\"_blank\" href=\"https://npmjs.org/package/grank\" title=\"NPM version\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/grank.svg\"\u003e\u003c/a\u003e\n    \u003ca target=\"_blank\" href=\"https://travis-ci.org/cdoco/grank\" title=\"Build Status\"\u003e\u003cimg src=\"https://travis-ci.org/cdoco/grank.svg?branch=master\"\u003e\u003c/a\u003e\n    \u003ca target=\"_blank\" href=\"https://opensource.org/licenses/MIT\" title=\"License: MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\"\u003e\u003c/a\u003e\n    \u003ca target=\"_blank\" href=\"http://nodejs.org/download/\" title=\"Node version\"\u003e\u003cimg src=\"https://img.shields.io/badge/node.js-%3E=_6.0-green.svg\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## 安装\n\n```shell\nnpm install -g grank\n```\n\n![](https://cdoco.com/images/grank.gif)\n\n## 使用\n\n### 最热项目\n\n```shell\n//用法\ngrank trend -s|--since \u003csince\u003e -l|--language \u003clanguage\u003e\n\n//示例\ngrank trend -s daily -l all\n```\n\n字段|含义\n-|-\nsince|查询天或者周或者月, 默认 daily, 可选值 daily, weekly, monthly\nlanguage|查询某个语言, 例如 c, java, node\n\n### 搜索用户\n\n```shell\n//用法\ngrank user [query] -s|--sort \u003csort\u003e -o|--order \u003corder\u003e -n|--num \u003cnum\u003e -p|--page \u003cpage\u003e\n\n//示例\ngrank user location:china+language:c -n 5 -s followers -o desc\n```\n\nquery 扩展用法, 语法格式为 keywords+key:value+key2:value:\n\n类型|含义|示例\n-|-|-\ntype|搜索的用户类型，user 或者 org|`type:user`\nin|在何字段中进行q的搜索。通常为user的response中的字段|`in:user`\nrepos|数量过滤字段。根据所拥有的repos数量进行过滤|`repos:10`\nlocation|所在地过滤|`location:china`\nlanguage|所拥有的repos语言过滤|`language:node`\nfollowers|关注数量过滤字段|`followers:100`\n\n可选字段\n\n字段|含义\n-|-\nnum|每页需要查询的数量\nsort|排序依据，值可为followers, repositories, or joined。默认为 best match\norder|排序顺序，desc或asc。默认为desc\npage|查询第几页\n\n---\n\n### 搜索仓库\n\n```shell\n//用法\ngrank repo [query] -s|--sort \u003csort\u003e -o|--order \u003corder\u003e -n|--num \u003cnum\u003e -p|--page \u003cpage\u003e\n\n//示例\ngrank repo language:node -n 5 -s stars -o desc\n```\n\nquery 扩展用法, 语法格式为 keywords+key:value+key2:value:\n\n类型|含义|示例\n-|-|-\nin|在何字段中对q进行搜索。可用值为repository相关response中的字段|`in:c`\nforks|forks字段过滤|`forks:100`\nstars|同forks，过滤使用|`stars:100`\nlanguage|搜索的语言类型，例 java,c,python 等|`language:node`\n\n可选字段\n\n字段|含义\n-|-\nnum|每页需要查询的数量\nsort|排序依据，值可取 stars,forks,updated。默认为best match\norder|排序顺序，desc或asc。默认为desc\npage|查询第几页\n\n## License\n\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdoco%2Fgrank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdoco%2Fgrank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdoco%2Fgrank/lists"}