Opiniated Node.js Github SDK
- Node.js version 24 or higher
This package is available in the Node Package Repository and can be easily installed with npm or yarn
$ npm i @openally/github.sdk
# or
$ yarn add @openally/github.sdkimport { GithubClient } from "@openally/github.sdk";
const github = new GithubClient({
token: process.env.GITHUB_TOKEN
});
for await (const pr of github.repos.nodejs.node.pulls().iterate()) {
console.log(pr.title);
}
const tags = await github.repos.OpenAlly["github.sdk"].tags().all();
const userRepos = await github.users.torvalds.repos().all();Available GitHub APIs:
Proxy provides access to GitHub repository endpoints.
import { repos } from "@openally/github.sdk";Via GithubClient (recommended for authenticated use)
import { GithubClient } from "@openally/github.sdk";
const { repos } = new GithubClient({
token: process.env.GITHUB_TOKEN
});Thanks goes to these wonderful people (emoji key):
MIT