1.0.0 โ€ข Published 5 months ago

forkaway v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Forkaway ๐Ÿงน

A CLI tool to help you clean up your GitHub fork repositories efficiently.

Features โœจ

  • ๐Ÿ” List all your fork repositories
  • ๐Ÿ—‘๏ธ Delete multiple forks at once
  • โœ… Interactive selection with visual feedback
  • ๐Ÿ“Š Progress tracking with status bars
  • ๐ŸŽฏ Bulk or selective deletion options
  • ๐Ÿ”’ Secure GitHub token handling
  • ๐Ÿ’ซ Beautiful CLI interface

Prerequisites ๐Ÿ“‹

  • Node.js (v16 or higher)
  • GitHub account
  • GitHub Personal Access Token with required permissions

Installation ๐Ÿš€

npm install -g forkaway

Setup ๐Ÿ”ง

  1. Generate a GitHub token at https://github.com/settings/tokens
  2. Enable these permissions:
    • repo (Full control of private repositories)
    • delete_repo (Delete repositories)
  3. Add the token to your shell configuration:

    For zsh:

    echo 'export GITHUB_TOKEN=your_token' >> ~/.zshrc
    source ~/.zshrc

    For bash:

    echo 'export GITHUB_TOKEN=your_token' >> ~/.bashrc
    source ~/.bashrc

Usage ๐Ÿ’ป

Simply run:

forkaway

The interactive CLI will guide you through: 1. Scanning your GitHub account for forks 2. Choosing between:

  • Deleting all forks (with safety confirmations)
  • Selecting specific forks to delete
  1. Reviewing selected repositories
  2. Confirming and executing deletions with progress tracking

Visual Feedback ๐Ÿ“Š

  • Progress bars show deletion status
  • Spinners indicate active operations
  • Color-coded success/failure messages
  • Detailed error reporting
  • Operation summary at completion

Safety Features ๐Ÿ›ก๏ธ

  • Multiple confirmations for bulk deletions
  • Review step before final deletion
  • Clear error messages
  • Ability to cancel at any point

Contributing ๐Ÿค

Contributions are welcome! Please check out our Contributing Guide.

License ๐Ÿ“„

MIT

Support ๐Ÿ’ช

If you encounter any issues or have questions: