Git Product home page Git Product logo

git-cloner's Introduction

git-cloner

PayPal AMA Version Downloads Get help on Codementor

Clone multiple git repositories.

☁️ Installation

$ npm i --save git-cloner

📋 Example

const gitCloner = require("git-cloner");

gitCloner([
    "IonicaBizau/git-stats"
  , {
        source: "IonicaBizau/node-cobol#1.5.0"
      , path: "a/bridge/to/1959"
    }
], `${__dirname}/clones`, (err, data) => {
    console.log(err || data);
});

📝 Documentation

gitCloner(input, options, cb)

Clones the git repositories specified in the input parameter.

Params

  • Array input: An array of git sources: git urls (it also supports owner/repo notation, parsed by git-source), or objects in this format:

  • source (String): The source of the git repository.

  • path (String): The custom folder name/path where the repository should be cloned.

  • Object options: An object containing the following fields:

  • dest (String): The folder where to clone the repositories (default: ".")

  • urlType (String): The git url type (default: "ssh").

  • showOutput (Boolean): If true, the child process output streams will be piped in the main process.

  • done (Function): A function to be called after each repo was cloned.

  • parallelLimit (Number): A number representing the max count of git cloning processes in the same time (default: 5).

  • Function cb: The callback function.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💫 Where is this library used?

If you are using this library in one of your projects, add it in this list.

📜 License

MIT © Ionică Bizău

git-cloner's People

Contributors

ionicabizau avatar

Watchers

 avatar  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.