An implementation of a GitHub API which handles rate limit hits by waiting for the rate limit reset and streams collection results across pages using as async interator.
Useful for long-running scripts.
npm install TomasHubelbauer/github-api
const github = require('github-api');
// `token` can be left `undefined` to use the API with public access rate limits
for await (const repository of github.getUsersUserRepos('TomasHubelbauer', { token })) {
// …
}
See index.d.ts
(auto-generated).
node test