{"id":16432667,"url":"https://github.com/2nthony/fetch-gh-content","last_synced_at":"2026-02-24T03:02:32.133Z","repository":{"id":46081392,"uuid":"193199009","full_name":"2nthony/fetch-gh-content","owner":"2nthony","description":"Fetch github repo content","archived":false,"fork":false,"pushed_at":"2023-12-15T05:32:23.000Z","size":806,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T22:02:42.966Z","etag":null,"topics":["fetch","github","module","node"],"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/2nthony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":"evillt","open_collective":null,"ko_fi":"evillt","tidelift":null,"custom":"https://donate.evila.me"}},"created_at":"2019-06-22T06:17:51.000Z","updated_at":"2019-08-27T06:41:17.000Z","dependencies_parsed_at":"2024-10-28T15:29:37.288Z","dependency_job_id":"63475b06-8503-4825-83c3-b2ea7426cc35","html_url":"https://github.com/2nthony/fetch-gh-content","commit_stats":null,"previous_names":["evillt/fetch-gh-content"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2nthony%2Ffetch-gh-content","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2nthony%2Ffetch-gh-content/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2nthony%2Ffetch-gh-content/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2nthony%2Ffetch-gh-content/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2nthony","download_url":"https://codeload.github.com/2nthony/fetch-gh-content/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785920,"owners_count":20995642,"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","module","node"],"created_at":"2024-10-11T08:44:03.750Z","updated_at":"2025-10-26T07:15:48.256Z","avatar_url":"https://github.com/2nthony.png","language":"JavaScript","funding_links":["https://patreon.com/evillt","https://ko-fi.com/evillt","https://donate.evila.me"],"categories":[],"sub_categories":[],"readme":"# fetch-gh-content\n\n\u003e Fetch github repo content\n\nPlease consider starring the project to show your ❤️ and support.\n\n[![NPM version](https://badgen.net/npm/v/fetch-gh-content?icon=npm)](https://npmjs.com/package/fetch-gh-content)\n[![NPM download](https://badgen.net/npm/dm/fetch-gh-content?icon=npm)](https://npmjs.com/package/fetch-gh-content)\n[![CircleCI](https://badgen.net/circleci/github/evillt/fetch-gh-content?icon=circleci)](https://circleci.com/gh/evillt/fetch-gh-content/tree/master)\n[![License](https://badgen.net/npm/license/fetch-gh-content)](./LICENSE)\n[![donate](https://badgen.net/badge/support%20me/donate/f2a)](https://donate.evila.me)\n\n- tiny size\n- zero dependencies\n\n## Install\n\n```sh\nyarn add fetch-gh-content\n```\n\n## Usage\n\n```js\nconst fetch = require('fetch-gh-content')\n\n;(async () =\u003e {\n  const content = await fetch({\n    owner: 'evillt',\n    repo: 'fetch-gh-content',\n    filepath: '__test__/plaintext'\n  })\n\n  console.log(content) // oh my fetch-gh-content\n  // Use it do something you want, e.g. `fs.writeFile`\n})()\n```\n\n## API\n\n`fetchGhContent(options): Promise\u003cstring | Array\u003cobject\u003e\u003e`\n\n### `options: object`\n\n#### `options.owner: string`\n\nGitHub repo owner\n\n#### `options.repo: string`\n\nGitHub repo name\n\n#### `options.filepath: PathLike`\n\nGitHub repo file path\n\n#### `options.token?: string`\n\n- Default: `process.env.GITHUB_TOKEN`\n\nGitHub access token\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n**fetch-gh-content** © [evillt](https://github.com/evillt), Released under the [MIT](./LICENSE) License.\n\nAuthored and maintained by **EVILLT** with help from contributors ([list](https://github.com/evillt/fetch-gh-content/contributors)).\n\n\u003e [evila.me](https://evila.me) · GitHub [@evillt](https://github.com/evillt) · Twitter [@evillt](https://twitter.com/evillt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2nthony%2Ffetch-gh-content","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2nthony%2Ffetch-gh-content","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2nthony%2Ffetch-gh-content/lists"}