ghpeek
v1.0.2
Published
A tiny CLI to inspect public GitHub repository information
Downloads
37
Readme
ghpeek
一个极简的 GitHub 仓库信息查询 CLI。
基于 vikiboss 的 shell 脚本改造而来:
https://gist.github.com/vikiboss/16efac49015739c3273f68e52ce21570
安装
npm i -g ghpeek或直接临时使用:
npx ghpeek facebook/react也可以用 Bun:
bunx ghpeek facebook/react用法
ghpeek owner/repo例如:
ghpeek vikiboss/60s
ghpeek facebook/react可选:提高 GitHub API 限流额度
不配置也能查询公开仓库。
如果你想提高速率限制,可以设置:
export GITHUB_RATE_LIMIT_PAT="github_pat_xxx"或者直接传:
ghpeek facebook/react --token github_pat_xxx输出内容
会显示仓库的基础信息,例如:
- 名称
- Stars
- Forks
- Watchers
- Issues
- 大小
- 主语言
- 默认分支
- License
- 创建时间
- 更新时间
