{"id":15686247,"url":"https://github.com/doowb/clone-repos","last_synced_at":"2025-05-07T18:22:55.918Z","repository":{"id":57200563,"uuid":"49470208","full_name":"doowb/clone-repos","owner":"doowb","description":"Clone all of a user's github repositories.","archived":false,"fork":false,"pushed_at":"2016-08-23T02:19:44.000Z","size":25,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T12:58:02.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/doowb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-12T02:49:24.000Z","updated_at":"2021-04-12T22:01:39.000Z","dependencies_parsed_at":"2022-09-16T15:11:46.804Z","dependency_job_id":null,"html_url":"https://github.com/doowb/clone-repos","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fclone-repos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fclone-repos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fclone-repos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fclone-repos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doowb","download_url":"https://codeload.github.com/doowb/clone-repos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252932086,"owners_count":21827220,"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":[],"created_at":"2024-10-03T17:36:52.460Z","updated_at":"2025-05-07T18:22:55.879Z","avatar_url":"https://github.com/doowb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clone-repos [![NPM version](https://img.shields.io/npm/v/clone-repos.svg?style=flat)](https://www.npmjs.com/package/clone-repos) [![NPM downloads](https://img.shields.io/npm/dm/clone-repos.svg?style=flat)](https://npmjs.org/package/clone-repos) [![Build Status](https://img.shields.io/travis/doowb/clone-repos.svg?style=flat)](https://travis-ci.org/doowb/clone-repos)\n\nClone all of a user's github repositories.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save clone-repos\n```\n\n## Usage\n\n```js\nvar cloneRepos = require('clone-repos');\n```\n\n## API\n\n### [.clone](index.js#L40)\n\nClone all repositories for the specified `owner`. All repositories will be cloned into a folder with the owner's name. The `options.dest` property may be set to specify where the repositories are cloned.\n\n**Params**\n\n* `options` **{Object}**\n* `options.owner` **{String|Array}**: Github `user` or `org` name to clone.\n* `options.dest` **{String}**: Destination folder for cloned repositories (defaults to `owner`).\n* `options.auth` **{Object}**: Authentication object to use to authenticate to github to extend github api limits.\n* `options.auth.type` **{String}**: Authentication type to use. May be `basic` or `oauth`.\n* `options.auth.username` **{String}**: Github `username` to use when using `basic` authentication.\n* `options.auth.password` **{String}**: Github `password` to use when using `basic` authentication.\n* `options.auth.token` **{String}**: Github personal access token to use when using `oauth` authentication.\n* `options.filter` **{Function}**: Optional filter function to filter out repositories that should not be cloned.\n* `cb` **{Function}**: Callback function called with `err` and `repos` object containing list of cloned repositories.\n\n**Example**\n\n```js\nclone({owner: 'doowb'}, function(err, repos) {\n  if (err) return console.error(err);\n  console.log('cloned', repos);\n});\n```\n\n## About\n\n### Related projects\n\n[github-base](https://www.npmjs.com/package/github-base): Base methods for creating node.js apps that work with the GitHub API. | [homepage](https://github.com/jonschlinkert/github-base \"Base methods for creating node.js apps that work with the GitHub API.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d \u0026\u0026 npm test\n```\n\n### Author\n\n**Brian Woodward**\n\n* [github/doowb](https://github.com/doowb)\n* [twitter/doowb](http://twitter.com/doowb)\n\n### License\n\nCopyright © 2016, [Brian Woodward](https://github.com/doowb).\nReleased under the [MIT license](https://github.com/doowb/clone-repos/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on August 22, 2016._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fclone-repos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoowb%2Fclone-repos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fclone-repos/lists"}