Skip to content

OpenAlly/github.sdk

Repository files navigation

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().iterate()) {
  console.log(pr.title);
}

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

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

📚 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):

License

MIT

About

Opiniated Node.js Github SDK

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Contributors