JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q42826F
  • License MIT

Clone multiple git repositories.

Package Exports

  • git-cloner

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (git-cloner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

git-cloner

Patreon 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).

  • shallow (Boolean): If true, a shallow clone will be created (i.e. --depth=1).

  • Function cb: The callback function.

😋 How to contribute

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

💰 Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❤️

📜 License

MIT © Ionică Bizău