A command-line tool that fetches and displays trending GitHub repositories for a given time range.
git clone https://github.com/your-username/github-trending-cli.git
cd github-trending-cli
npm install
npm install -g .trending-repos --duration <day|week|month|year> --limit <number>| Option | Description | Default | Valid Values |
|---|---|---|---|
--duration |
Time range for trending repos | week |
day, week, month, year |
--limit |
Number of repositories to display | 10 |
Any positive number |
# Show top 10 trending repos from the past week (default)
trending-repos
# Show top 20 trending repos from the past month
trending-repos --duration month --limit 20
# Show top 5 trending repos from today
trending-repos --duration day --limit 5
# Show top 50 trending repos from the past year
trending-repos --duration year --limit 50- Node.js 18+
- npm