{"id":26648074,"url":"https://github.com/fraxken/fetch-github-repositories","last_synced_at":"2025-03-25T00:01:47.995Z","repository":{"id":35046681,"uuid":"200366744","full_name":"dashlog/fetch-github-repositories","owner":"dashlog","description":"Fetch github repositories for a given user (or organization)","archived":false,"fork":false,"pushed_at":"2023-10-16T15:30:41.000Z","size":299,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-18T19:20:53.937Z","etag":null,"topics":["fetch","github","nodejs","repository"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dashlog.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-08-03T11:17:31.000Z","updated_at":"2023-03-19T11:47:38.000Z","dependencies_parsed_at":"2024-01-18T03:47:17.990Z","dependency_job_id":null,"html_url":"https://github.com/dashlog/fetch-github-repositories","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"8f5cbd032e17ea91330978b4bbaee403e88aed27"},"previous_names":["fraxken/fetch-github-repositories"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashlog%2Ffetch-github-repositories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashlog%2Ffetch-github-repositories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashlog%2Ffetch-github-repositories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashlog%2Ffetch-github-repositories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashlog","download_url":"https://codeload.github.com/dashlog/fetch-github-repositories/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372376,"owners_count":20604491,"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":["fetch","github","nodejs","repository"],"created_at":"2025-03-25T00:01:19.810Z","updated_at":"2025-03-25T00:01:47.878Z","avatar_url":"https://github.com/dashlog.png","language":"TypeScript","readme":"# Fetch-github-repositories\n![version](https://img.shields.io/badge/dynamic/json.svg?url=https://raw.githubusercontent.com/dashlog/fetch-github-repositories/master/package.json\u0026query=$.version\u0026label=Version)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/dashlog/fetch-github-repositories/commit-activity)\n![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)\n![size](https://img.shields.io/github/languages/code-size/dashlog/fetch-github-repositories)\n\nFetch github repositories for a given user (or an organization).\n\n## Requirements\n- [Node.js](https://nodejs.org/en/) v20 or higher\n\n## Why ?\n\n- Fast and light (With a lazy API if required).\n- Support both `users` and `orgs` endpoints with the **kind** option.\n- Replacement for [repos](https://github.com/jonschlinkert/repos) which introduce dozen of dependencies.\n- TypeScript support.\n\n## Getting Started\n\nThis package is available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) or [yarn](https://yarnpkg.com).\n\n```bash\n$ npm i @dashlog/fetch-github-repositories\n# or\n$ yarn add @dashlog/fetch-github-repositories\n```\n\n## Usage example\n```js\nimport { fetch, fetchLazy } from \"@dashlog/fetch-github-repositories\";\n\nconst repos = await fetch(\"fraxken\", {\n    fetchUserOrgs: true // if you want an equivalent of \"repos\"\n});\n\n// or use lazy API\nfor await (const repo of fetchLazy(\"fraxken\")) {\n    console.log(repo.full_name);\n}\n```\n\n## API\n\n### fetch(namespace: string, options?: FetchOptions): Promise\u003c Repository[] \u003e\nReturn an Array of repositories (the interface can be found in index.d.ts).\n\n```ts\nexport interface FetchOptions {\n  /**\n   * @default fetch-github-repo\n   */\n  agent?: string;\n  token?: string | null;\n  /**\n   * @default users\n   */\n  kind?: \"users\" | \"orgs\";\n  /**\n   * Fetch the repositories of all orgs for a given user\n   * @default false\n   */\n  fetchUserOrgs?: boolean;\n}\n```\n\n### fetchLazy(namespace: string, options?: FetchOptions): AsyncIterableIterator\u003c Repository \u003e\nSame arguments as **fetch**.\n\n## Contributors ✨\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.linkedin.com/in/thomas-gentilhomme/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/4438263?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGentilhomme\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dashlog/fetch-github-repositories/commits?author=fraxken\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/dashlog/fetch-github-repositories/issues?q=author%3Afraxken\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/dashlog/fetch-github-repositories/commits?author=fraxken\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#security-fraxken\" title=\"Security\"\u003e🛡️\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## License\nMIT\n","funding_links":[],"categories":["Packages"],"sub_categories":["HTTP"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffraxken%2Ffetch-github-repositories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffraxken%2Ffetch-github-repositories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffraxken%2Ffetch-github-repositories/lists"}