{"id":20393050,"url":"https://github.com/aichbauer/node-git-clone-repo","last_synced_at":"2026-05-06T19:38:12.371Z","repository":{"id":82477678,"uuid":"103868885","full_name":"aichbauer/node-git-clone-repo","owner":"aichbauer","description":"Clone a git repository","archived":false,"fork":false,"pushed_at":"2018-05-09T13:04:29.000Z","size":42,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T20:40:52.062Z","etag":null,"topics":["clone","git","is-git","nodejs","repository"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aichbauer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-17T23:11:21.000Z","updated_at":"2018-12-18T16:28:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"26953994-2813-45d4-8d03-969a950b1856","html_url":"https://github.com/aichbauer/node-git-clone-repo","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"8c34d0acfc93808fd61ff61917100663435922c7"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-clone-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-clone-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-clone-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-clone-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aichbauer","download_url":"https://codeload.github.com/aichbauer/node-git-clone-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241942471,"owners_count":20046346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clone","git","is-git","nodejs","repository"],"created_at":"2024-11-15T03:47:09.402Z","updated_at":"2026-05-06T19:38:12.314Z","avatar_url":"https://github.com/aichbauer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-clone-repo\n\n\u003e Clone a git repository\n\n[![Build Status](https://travis-ci.org/aichbauer/node-git-clone-repo.svg?branch=master)](https://travis-ci.org/aichbauer/node-git-clone-repo)\n[![Build status](https://ci.appveyor.com/api/projects/status/yk51yh1t7c2sworc?svg=true)](https://ci.appveyor.com/project/aichbauer/node-git-clone-repo)\n[![Coverage Status](https://coveralls.io/repos/github/aichbauer/node-git-clone-repo/badge.svg?branch=master)](https://coveralls.io/github/aichbauer/node-git-clone-repo?branch=master)\n\n## Installation\n\n```sh\n$ npm i git-clone-repo --save\n```\n\nor\n\n```sh\n$ yarn add git-clone-repo\n```\n\n## Usage\n\n```js\nconst gitCloneRepo = require('git-clone-repo'); // import gitCloneRepo from 'git-clone-repo'\n\n// clones the repo to your current working dir\ngitCloneRepo('www.github.com/username/repo-that-exists'); // =\u003e true\n\n// clones the repo to your current working dir\ngitCloneRepo('https://www.github.com/username/repo-that-exists'); // =\u003e true\n\n// clones the repo to your current working dir\ngitCloneRepo('username/repo-that-exists', { host: 'bitbucket.com' }); // =\u003e true\n\n// clones the repo to your current working dir + 'your/destination/path'\ngitCloneRepo('username/repo-that-exists', { \n  host: 'bitbucket.com', \n  destination: 'your/destination/path' \n}); // =\u003e true\n\n// automatically checks github if no host is provided\ngitCloneRepo('username/repo-that-not-exists'); // =\u003e false\n```\n\n## LICENSE\n\nMIT © Lukas Aichbauer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faichbauer%2Fnode-git-clone-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faichbauer%2Fnode-git-clone-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faichbauer%2Fnode-git-clone-repo/lists"}