10.0.0-next.1698809969.f56710a4c5a9fdb6608334dc3c6ea0f63f260172 • Published 2 years ago
@bevry/github-api v10.0.0-next.1698809969.f56710a4c5a9fdb6608334dc3c6ea0f63f260172
Authorize GitHub API requests with the appropriate credentials and preferences.
Usage
Node.js versions 15 and 16 will need to use --experimental-global-fetch.
import { query } from '@bevry/github-api'
// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary
const response = await query({
pathname: `user`,
// searchParams, headers, credentials, url, userAgent
})
const data = await response.json()
console.log(data)npm
Skypack
<script type="module">
import * as pkg from '//cdn.skypack.dev/@bevry/github-api@^10.0.0'
</script>unpkg
<script type="module">
import * as pkg from '//unpkg.com/@bevry/github-api@^10.0.0'
</script>jspm
<script type="module">
import * as pkg from '//dev.jspm.io/@bevry/github-api@10.0.0'
</script>Discover the release history by heading on over to the HISTORY.md file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
Unless stated otherwise all works are:
and licensed under: