Giter Site home page Giter Site logo

github-utils-nodejs's Introduction

NodeJS Github Utils

Introduction

I recently joined an org with many repos that I wanted to clone to my local machine. I decided to write a simple Node.js script to automate the process. This script reads a list of repositories from a JSON object and clones them to a specified directory.

It asks for the following:

  • Organization Name
  • GitHub Personal Access Token
  • Directory on localmachine to clone the repos to

Note: This script does not store your GitHub Personal Access Token. It is only used to authenticate the script with GitHub. All information is handled locally and not sent to any third parties.

Getting Started

I use pnpm, so:

  1. Clone the repository to your local machine.
  2. Run pnpm install to install the dependencies.
  3. Run pnpm start to start the script.
  4. Follow the prompts to clone the repositories.

Troubleshooting

If you encounter any errors during the cloning process, the error message will be logged to the console. Common issues might include:

  • A repository's clone_url is undefined: This means the repository data might be incorrect or the repository does not exist.
  • Failure to clone a repository: This could be due to network issues, or the repository might be private and requires a personal access token with appropriate access rights.

github-utils-nodejs's People

Contributors

jkmoriarty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.