Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 6, 2024 via pnpm

@octokit/rest 20.0.1

GitHub REST API client for Node.js
Package summary
Share
0
issues
3
licenses
14
MIT
4
ISC
1
Apache-2.0
Package created
17 Jan 2018
Version published
11 Jul 2023
Maintainers
4
Total deps
19
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
14 Packages, Including:
@octokit/auth-token@4.0.0
@octokit/core@5.2.0
@octokit/endpoint@9.0.5
@octokit/graphql@7.1.0
@octokit/openapi-types@18.1.1
@octokit/openapi-types@22.2.0
@octokit/plugin-paginate-rest@8.0.0
@octokit/plugin-request-log@4.0.1
@octokit/plugin-rest-endpoint-methods@9.0.0
@octokit/request-error@5.1.0
@octokit/request@8.4.0
@octokit/rest@20.0.1
@octokit/types@11.1.0
@octokit/types@13.5.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
deprecation@2.3.1
once@1.4.0
universal-user-agent@6.0.1
wrappy@1.0.2

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
before-after-hook@2.2.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of @octokit/rest 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@octokit/core5.2.044.31 kBMIT
prod peer
@octokit/plugin-paginate-rest8.0.018.79 kBMIT
prod
@octokit/plugin-request-log4.0.110.71 kBMIT
prod
@octokit/plugin-rest-endpoint-methods9.0.0158.34 kBMIT
prod

Visualizations

Frequently Asked Questions

What does @octokit/rest do?

The @octokit/rest package is a GitHub REST API client for Node.js. This JavaScript client facilitates direct interaction with the GitHub REST API, enabling developers to perform operations like list organization repositories, user authentication, CRUD operations on issues, pull requests, and other GitHub entities, among others, directly from their JavaScript code.

How do you use @octokit/rest?

To use @octokit/rest, start by installing the package with your Node package manager of choice: npm install @octokit/rest. After installation, you can import the Octokit class from the package. Instantiating this class gives you an object with methods that allow you to perform various GitHub REST API operations. Below is a quick example:

const { Octokit } = require("@octokit/rest");
const octokit = new Octokit();

octokit.rest.repos.listForOrg({
  org: "octokit",
  type: "public",
})
.then(({ data }) => {
  // handle data
});

In this example, we are establishing a connection to GitHub's API using Octokit and then listing all the public repositories for the organization "octokit". The then function is used to handle the response.

If you are working in a browser environment, you can also use the ES6 module syntax via a module CDN like esm.sh:

<script type="module">
  import { Octokit } from "https://esm.sh/@octokit/rest";
  // use Octokit as above
</script>

Where are the @octokit/rest docs?

The full documentation for @octokit/rest, containing detailed usage instructions and API method descriptions, is available online at Octokit's own documentation page. Here you'll find all the information you need to make full use of this powerful GitHub REST API client in your JavaScript projects.