This project is a simple command line interface (CLI) application that fetches the recent activity of a specified GitHub user using the GitHub API and displays it in the terminal. This application is built using Node.js and demonstrates how to work with APIs, handle JSON data, and build a CLI application.
- Fetch recent activity of a specified GitHub user.
- Display activities such as pushes, issues, and stars in the terminal.
- Handle errors gracefully for invalid usernames or API failures.
- Node.js (version 14 or higher)
-
Clone the repository:
git clone https://github.com/yourusername/github-user-activity-cli.git cd github-user-activity-cli -
Make the script executable:
chmod +x index.js
-
Another way
node index.js <username>
Run the CLI application by providing a GitHub username as an argument:
./index.js <username>