Skip to content

Latest commit

Β 

History

History
114 lines (84 loc) Β· 4.21 KB

File metadata and controls

114 lines (84 loc) Β· 4.21 KB

Github.SDK

Opiniated Node.js Github SDK

npm version license ossf scorecard github ci workflow size

🚧 Requirements

πŸš€ Getting Started

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.sdk

πŸ‘€ Usage

import { GithubClient } from "@openally/github.sdk";

const github = new GithubClient({
  token: process.env.GITHUB_TOKEN
});

for await (const pr of github.repos.nodejs.node.pulls()) {
  console.log(pr.title);
}

const tags = await github.repos.OpenAlly["github.sdk"].tags();

const userRepos = await github.users.torvalds.repos();

πŸ“š API

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
});

Contributors ✨

All Contributors

Thanks goes to these wonderful people (emoji key):

Thomas.G
Thomas.G

πŸ’» πŸ“– πŸ‘€ ⚠️ πŸ›‘οΈ
Clement Gombauld
Clement Gombauld

πŸ“– πŸ‘€

License

MIT