rdsh-github-actions
v1.0.1
Published
A CLI tool to fetch and display recent GitHub user events using the GitHub API
Readme
GitHub Events CLI
A simple Node.js CLI tool to fetch and display the recent public events (like pushes, forks, stars) of any GitHub user.
project url
https://roadmap.sh/projects/github-user-activity
🚀 Features
- Fetches a user’s latest events from the GitHub Events API.
- Prints the event types (e.g.,
PushEvent,ForkEvent,WatchEvent). - Lightweight and easy to run directly from the terminal.
📦 Installation
Clone this repository:
git clone https://github.com/shivambisen/rdsh-github-action-cli.git
Make the script executable:
chmod +x index.js(Optional) Add it globally using npm link:
npm link🖥 Usage
Run the script with a GitHub username:
./index.js <username>Or (if linked globally):
github-actions <username>Example:
❯ github-actions shivambisen
PushEvent
CreateEvent
WatchEvent
ForkEvent⚙️ Requirements
- Node.js v18+ (for native
fetchsupport). For Node.js < 18, install node-fetch:
npm install node-fetchAnd add at the top of the script:
import fetch from "node-fetch";📄 License
MIT License
