Published: August 27, 20240 min read

Share this project  

EN#Node.js#GitHub API#CLI Tool

Clone All Gists

This script downloads all public gists for a specified GitHub user and saves them to the local filesystem. The gists are organized by username and gist ID. GitHub Repo

Features

  • Authentication: Prompts for a GitHub token to authenticate API requests.
  • User Input: Asks for the GitHub username whose gists will be downloaded.
  • File Management: Automatically creates directories and saves gists by username and gist ID.
  • Robust Validation: Validates the GitHub token by attempting to authenticate with it.