https://github.com/alex-page/git-clone-repos
Clone multiple git repositories via shell command
https://github.com/alex-page/git-clone-repos
Last synced: 3 months ago
JSON representation
Clone multiple git repositories via shell command
- Host: GitHub
- URL: https://github.com/alex-page/git-clone-repos
- Owner: alex-page
- License: mit
- Created: 2021-04-03T01:49:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-12T15:53:42.000Z (over 3 years ago)
- Last Synced: 2025-01-17T00:28:23.849Z (5 months ago)
- Language: TypeScript
- Size: 182 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-clone-repos
> Clone multiple git repositories via shell command
## Install
```shell
npm i git-clone-repos
```## Usage
```js
const clone = require("git-clone-repos");async () => {
const options = {
repos: [
"[email protected]:alex-page/alexpage.dev.git",
"[email protected]: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.dev.git` or SSH `[email protected]:alex-page/alexpage.dev.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`.
## Related
**git-clone** https://www.npmjs.com/package/git-clone