{"id":20255206,"url":"https://github.com/hjfitz/github-tools","last_synced_at":"2026-05-18T17:04:55.527Z","repository":{"id":75400765,"uuid":"127142117","full_name":"hjfitz/github-tools","owner":"hjfitz","description":"A small (read: 1) collection of tools for interfacing with the Github RESTFul API","archived":false,"fork":false,"pushed_at":"2018-03-29T18:50:56.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-12T20:55:55.317Z","etag":null,"topics":["api","axios","github","restful-api","tsc","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hjfitz.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-28T13:10:40.000Z","updated_at":"2018-04-12T13:14:33.000Z","dependencies_parsed_at":"2023-06-06T09:31:04.824Z","dependency_job_id":null,"html_url":"https://github.com/hjfitz/github-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hjfitz/github-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fgithub-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fgithub-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fgithub-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fgithub-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hjfitz","download_url":"https://codeload.github.com/hjfitz/github-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fgithub-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33184769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","axios","github","restful-api","tsc","typescript"],"created_at":"2024-11-14T10:37:18.890Z","updated_at":"2026-05-18T17:04:55.511Z","avatar_url":"https://github.com/hjfitz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Tools\n\nA little TypeScript library because I'm too lazy to rewrite code\n\n## Features:\n- Auto pagination\n- Waits if about to go over the API limit\n\n\n## Usage:\n```js\nconst gitTools = require('@hjfitz/github-tools');\n\nconst client = gitTools.createClient({ token: process.env.GITHUB_PAT });\n\nconst results = await client.request('/orgs/myCoolorg/users');\n\n// use auto pagination\nconst paginatedResults = await client.request('/orgs/myCoolorg/users', 3, true);\n```\n\n## Request signature:\n```js\nclient.request(url, retries, paginate, page number);\n```\n* `url: string` - the API url to hit\n* `retries: number` - the maximum number of retries to attempt (default: 3)\n* `paginate: boolean` - whether to auto-paginate (default: false)\n* `page number: number` - which page to start on (default: 0)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjfitz%2Fgithub-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjfitz%2Fgithub-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjfitz%2Fgithub-tools/lists"}