This project provides a Node.js application to easily download all your starred repositories from GitHub.
100+ Github Starred Repositories
To install and use this application, follow these steps:
-
Clone the repository:
git clone https://github.com/tuanductran/download-repos.git
-
Navigate to the project directory:
cd download-repos
-
Install the dependencies:
pnpm install
Before running the application, you need to configure it by setting up the environment variables. Create a .env
file in the project directory and add the following variables:
GITHUB_TOKEN
: Your GitHub personal access token.GITHUB_USERNAME
: Your GitHub username.
You can use the provided .env.example
file as a template:
GITHUB_TOKEN=your_github_token
GITHUB_USERNAME=your_github_username
Copy the contents of .env.example to .env and replace the placeholders with your actual values.
This is a CLI application. You can run the application using the following command:
node index.mjs
Alternatively, if you have built the application using pkg, you can run the built executable:
./build/download-repos-linux
./build/download-repos-macos
./build/download-repos-windows
Note: The actual executable name may vary based on your target platform (Linux, macOS, Windows).
The following scripts are available in this project:
- build: Builds the application using pkg. The output files are placed in the build directory.
- clear: Clears the build directory.
You can run these scripts using pnpm:
pnpm build
pnpm clear
This project is authored by Tuan Duc Tran.
This project is licensed under the MIT License. See the LICENSE file for more details.