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";constgithub=newGithubClient({token: process.env.GITHUB_TOKEN});forawait(constprofgithub.repos.nodejs.node.pulls()){console.log(pr.title);}consttags=awaitgithub.repos.OpenAlly["github.sdk"].tags();constuserRepos=awaitgithub.users.torvalds.repos();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 }=newGithubClient({token: process.env.GITHUB_TOKEN});Thanks goes to these wonderful people (emoji key):
Thomas.G 💻📖👀 | Clement Gombauld 📖👀 |
MIT