Lightweight Node.js CLI that fetches and prints a user's recent GitHub public events.
Project page: https://roadmap.sh/projects/github-user-activity
- Node.js (v12+ recommended)
- Internet access (GitHub API rate limits apply for unauthenticated requests)
-
Clone the repository: git clone https://github.com/KarlangaXZ/GitHub_User_Activity.git
-
Change into the project folder: cd GitHub_User_Activity
-
Install dependencies: npm install
No additional npm packages are required; the script uses Node's built-in https module.
Run the script with a GitHub username:
node github-activity.js
Example: node github-activity.js kamranahmedse
If you made the script executable, you can also run: ./github-activity.js
- The script queries the public events endpoint: /users/:username/events.
- Unauthenticated requests are subject to GitHub API rate limits. If you hit rate limits, wait or use an authenticated request (not implemented in this script).
- Output uses ANSI colors; disable or adjust your terminal if colors render incorrectly.
See repository for license and contribution details.