Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-clone-repos

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-clone-repos

Clone multiple git repositories via shell command

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

git-clone-repos

Clone multiple git repositories via shell command

Install

npm i git-clone-repos

Usage

const clone = require('git-clone-repos');

(async() => {
  const options = {
    repos: [
      'git@github.com:alex-page/alexpage.com.au.git',
      'git@github.com:alex-page/harmonograph.art.git',
    ],
    destination: './.repo/'
  };

  await clone(options);
});

API

clone({repos, destination, depth?, isTreeless?})

repos

Type: array

Array of git repository URLs. can be HTTPS https://github.com/alex-page/alexpage.com.au.git or SSH git@github.com:alex-page/alexpage.com.au.git.

destination

Type: string

Set the destination for the cloned repositories.

depth

Type: number

The depth to clone the repository.

isTreeless

Type: Boolean

If the cloned repository is treeless --filter=tree:0.

git-clone https://www.npmjs.com/package/git-clone

Keywords

FAQs

Package last updated on 07 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc