8.0.0 • Published 3 years ago

githubauthreq v8.0.0

Weekly downloads
1,091
License
MIT
Repository
github
Last release
3 years ago

Authorize GitHub API requests with the appropriate credentials and preferences.

Usage

Complete API Documentation.

Using TypeScript:

// imports using typescript
import { fetch } from 'githubauthreq'

// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary
fetch({
    pathname: `user`,
    // url, searchParams, headers, credentials = process.env as GitHubCredentials
})

Using JavaScript:

// imports with javascript
import { fetch } from 'githubauthreq'

// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary
fetch({
    pathname: `user`,
    // url, searchParams, headers, credentials = process.env
})

If you wish for a more manual approach, refer to the Complete API Documentation..

npm

Skypack

<script type="module">
    import * as pkg from '//cdn.skypack.dev/githubauthreq@^8.0.0'
</script>

unpkg

<script type="module">
    import * as pkg from '//unpkg.com/githubauthreq@^8.0.0'
</script>

jspm

<script type="module">
    import * as pkg from '//dev.jspm.io/githubauthreq@8.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:

6.4.0

3 years ago

7.0.0

3 years ago

8.0.0

3 years ago

6.0.0

3 years ago

5.19.0

4 years ago

5.18.0

4 years ago

5.17.0

4 years ago

5.16.0

4 years ago

5.15.0

4 years ago

5.14.1

4 years ago

5.14.0

4 years ago

5.13.0

4 years ago

5.12.0

4 years ago

5.11.0

4 years ago

5.10.0

4 years ago

5.9.0

4 years ago

5.8.0

4 years ago

5.7.0

4 years ago

5.6.0

4 years ago

5.5.0

4 years ago

5.4.0

4 years ago

5.3.0

4 years ago

5.2.0

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.0

4 years ago