https://github.com/leg3ndary/githubextract
Quick Script to extract your repositories
https://github.com/leg3ndary/githubextract
github javascript
Last synced: about 2 months ago
JSON representation
Quick Script to extract your repositories
- Host: GitHub
- URL: https://github.com/leg3ndary/githubextract
- Owner: Leg3ndary
- Created: 2025-04-03T23:21:41.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-03T23:23:03.000Z (2 months ago)
- Last Synced: 2025-04-04T00:25:07.494Z (2 months ago)
- Topics: github, javascript
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Repository Extractor
A simple script that extracts your GitHub profile and repository data for resume building.
## Features
- Fetches your GitHub user profile information
- Retrieves all your public repositories (excluding forks)
- Calculates repository statistics (languages, stars, forks, etc.)
- Saves everything to a structured JSON file## Prerequisites
- Node.js installed
- GitHub Personal Access Token## Installation
1. Clone or download this repository
2. Install dependencies:
```
npm install
```
3. Create a `.env` file in the project root with your GitHub token:
```
GITHUB_TOKEN=your_github_token_here
```## Usage
1. Modify the config section in the script if you want to change:
- Your GitHub username
- The output file name2. Run the script:
```
npm start
```3. Find your data in the generated JSON file (default: `github_resume_data.json`)
## Output Format
The script generates a JSON file with the following structure:
```json
{
"user": {
"username": "YourUsername",
"name": "Your Name",
"bio": "Your bio",
...
},
"repositories": [
{
"name": "repo-name",
"description": "Repository description",
"language": "JavaScript",
"stars": 5,
...
},
...
],
"statistics": {
"totalRepos": 10,
"languageCounts": {
"JavaScript": 5,
"Python": 3,
...
},
...
}
}
```