Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@bevry/github-api

bevry738Artistic-2.011.4.0TypeScript support: included

Interact with the GitHub API, fetching commits, repositories, members, and backers (authors, maintainers, contributors, funders, sponsors, donors)

api, auth, author, authors, backer, backers, browser, contributor, contributors, deno, deno-edition, deno-entry, denoland, es2022, export-default, finance, funders, funding, github, github-contributor, github-contributors, github-member, github-members, github-org, github-organization, github-sponsor, github-sponsors, github-team, github-teams, maintainer, maintainers, member, members, module, node, org, organisation, organization, owners, package.json, querystring, sponsors, sponsorships, team, teams, thanksdev, typed, types, typescript, users

readme

@bevry/github-api

Status of the GitHub Workflow: bevry NPM version NPM downloads
GitHub Sponsors donate button ThanksDev donate button Patreon donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button
Discord server badge Twitch community badge

Interact with the GitHub API, fetching commits, repositories, members, and backers (authors, maintainers, contributors, funders, sponsors, donors)

Usage

Complete API Documentation.

Install

npm

Install Globally

  • Install: npm install --global @bevry/github-api
  • Executable: github-backers

Install Locally

  • Install: npm install --save @bevry/github-api
  • Executable: npx github-backers
  • Import: import pkg from ('@bevry/github-api')
  • Require: const pkg = require('@bevry/github-api').default

Deno

import pkg from 'https://unpkg.com/@bevry/github-api@^11.4.0/edition-deno/index.ts'

Skypack

<script type="module">
    import pkg from '//cdn.skypack.dev/@bevry/github-api@^11.4.0'
</script>

unpkg

<script type="module">
    import pkg from '//unpkg.com/@bevry/github-api@^11.4.0'
</script>

jspm

<script type="module">
    import pkg from '//dev.jspm.io/@bevry/github-api@11.4.0'
</script>

Editions

This package is published with the following editions:

  • @bevry/github-api/source/index.ts is TypeScript source code with Import for modules
  • @bevry/github-api/edition-browsers/index.js is TypeScript compiled against ES2022 for web browsers with Import for modules
  • @bevry/github-api aliases @bevry/github-api/edition-es2022/index.js
  • @bevry/github-api/edition-es2022/index.js is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules
  • @bevry/github-api/edition-es2022-esm/index.js is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules
  • @bevry/github-api/edition-types/index.d.ts is TypeScript compiled Types with Import for modules
  • @bevry/github-api/edition-deno/index.ts is TypeScript source code made to be compatible with Deno

History

Discover the release history by heading on over to the HISTORY.md file.

Backers

Code

Discover how to contribute via the CONTRIBUTING.md file.

Authors

Maintainers

Contributors

Finances

GitHub Sponsors donate button ThanksDev donate button Patreon donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button

Sponsors

  • Andrew Nesbitt — Software engineer and researcher
  • Balsa — We're Balsa, and we're building tools for builders.
  • Codecov — Empower developers with tools to improve code quality and testing.
  • Poonacha Medappa
  • Rob Morris
  • Sentry — Real-time crash reporting for your web apps, mobile apps, and games.
  • Syntax — Syntax Podcast

Donors

License

Unless stated otherwise all works are:

and licensed under:

changelog

History

v11.4.0 2023 December 30

v11.3.3 2023 December 28

v11.3.2 2023 December 28

v11.3.1 2023 December 28

v11.3.0 2023 December 28

v11.2.0 2023 December 28

v11.1.0 2023 December 28

v11.0.0 2023 December 27

v10.2.0 2023 November 20

v10.1.0 2023 November 14

v10.0.0 2023 November 1

v9.0.0 2021 August 5

  • Renamed from githubauthreq to @bevry/github-api
  • Renamed fetch to query, to reflect API differences and now that query needs to be awaited
  • query now supports a userAgent property that you can set to your API client

v8.0.0 2021 August 4

  • getURL, getCredentialedURL, and fetch now accept a single argument, which is the same as before but now supports url and credentials properties, and if credentials is nullish then it attempts to use the environment variables

v7.0.0 2021 August 4

  • Rewrote the API, now all you have to do is use its exported fetch method in most cases

v6.4.0 2021 August 4

v6.3.0 2021 July 30

v6.2.0 2021 July 29

v6.1.0 2021 July 28

v6.0.0 2020 November 12

  • Rewrote the API to support new authorization variables, preferences, and usage

v5.19.0 2020 October 29

v5.18.0 2020 September 4

v5.17.0 2020 August 18

v5.16.0 2020 August 4

v5.15.0 2020 July 22

v5.14.1 2020 July 22

  • Fixed editions dependency being a dev dependency instead of a standard dependency (regression since v5.13.0)
  • Updated dependencies, base files, and editions using boundation

v5.14.0 2020 July 22

v5.13.0 2020 July 21

v5.12.0 2020 June 25

v5.11.0 2020 June 21

v5.10.0 2020 June 21

v5.9.0 2020 June 20

v5.8.0 2020 June 10

v5.7.0 2020 June 10

v5.6.0 2020 May 22

v5.5.0 2020 May 21

v5.4.0 2020 May 21

v5.3.0 2020 May 11

v5.2.0 2020 May 6

v5.1.1 2020 April 27

  • Correctly move cross-fetch from dependency to dev dependency

v5.1.0 2020 April 27

  • Renamed githubQueryString to getParams with b/c alias for githubQueryString, fetch, and default
  • Renamed githubAuthorizationHeader to getAuthHeader with b/c alias for githubAuthorizationHeader
  • Renamed redact to redactParams with b/c alias for redact
  • Added new getHeaders

v5.0.0 2020 March 27

  • Updated for GitHub's new authorization recommendations
    • Introduced new githubAuthorizationHeader method, and renamed fetch to githubQueryString, and removed default export
    • Renamed the package from githubauthquerystring to githubauthreq
  • Minimum required node version changed from node: >=8 to node: >=10 to keep up with mandatory ecosystem changes

v4.0.0 2020 March 27

  • Fixed for latest TypeScript
  • Updated dependencies, base files, and editions using boundation
  • Minimum required node version changed from node: >=8 to node: >=10 to keep up with mandatory ecosystem changes — not actually applied, will be applied in next major

v3.0.1 2019 December 18

  • Fixed an error in a README.md example

v3.0.0 2019 December 18

v2.3.0 2019 December 9

v2.2.0 2019 December 1

v2.1.0 2019 December 1

v2.0.0 2019 November 18

  • Updated dependencies, base files, and editions using boundation
  • Minimum required node version changed from node: >=6 to node: >=8 to keep up with mandatory ecosystem changes

v1.2.0 2019 November 13

v1.1.0 2019 November 8

v1.0.2 2018 November 15

  • Fixed documentation link

v1.0.1 2018 November 15

  • Update engines to reflect lack of Node v4 compatibility

v1.0.0 2018 November 15

  • Initial working version