Gathering detailed insights and metrics for @octokit/plugin-rest-endpoint-methods
Gathering detailed insights and metrics for @octokit/plugin-rest-endpoint-methods
Gathering detailed insights and metrics for @octokit/plugin-rest-endpoint-methods
Gathering detailed insights and metrics for @octokit/plugin-rest-endpoint-methods
Octokit plugin adding one method for all of api.github.com REST API endpoints
npm install @octokit/plugin-rest-endpoint-methods
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.1
Supply Chain
94.8
Quality
89.3
Maintenance
100
Vulnerability
100
License
TypeScript (98.62%)
JavaScript (1.38%)
Total Downloads
1,430,651,999
Last Day
1,934,928
Last Week
10,863,148
Last Month
43,956,090
Last Year
429,591,207
MIT License
119 Stars
934 Commits
59 Forks
12 Watchers
15 Branches
29 Contributors
Updated on May 21, 2025
Latest Version
15.0.0
Package Id
@octokit/plugin-rest-endpoint-methods@15.0.0
Unpacked Size
1.25 MB
Size
132.62 kB
File Count
18
NPM Version
10.9.2
Node Version
22.15.0
Published on
May 20, 2025
Cumulative downloads
Total Downloads
Last Day
7.1%
1,934,928
Compared to previous day
Last Week
6.3%
10,863,148
Compared to previous week
Last Month
3.6%
43,956,090
Compared to previous month
Last Year
29.4%
429,591,207
Compared to previous year
1
1
Octokit plugin adding one method for all of api.github.com REST API endpoints
Browsers |
Load
|
---|---|
Node |
Install with
|
1const MyOctokit = Octokit.plugin(restEndpointMethods); 2const octokit = new MyOctokit({ auth: "secret123" }); 3 4// https://developer.github.com/v3/users/#get-the-authenticated-user 5octokit.rest.users.getAuthenticated();
There is one method for each REST API endpoint documented at https://developer.github.com/v3. All endpoint methods are documented in the docs/ folder, e.g. docs/users/getAuthenticated.md
[!IMPORTANT] As we use conditional exports, you will need to adapt your
tsconfig.json
by setting"moduleResolution": "node16", "module": "node16"
.See the TypeScript docs on package.json "exports".
See this helpful guide on transitioning to ESM from @sindresorhus
Parameter and response types for all endpoint methods exported as { RestEndpointMethodTypes }
.
Example
1import { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods"; 2 3type UpdateLabelParameters = 4 RestEndpointMethodTypes["issues"]["updateLabel"]["parameters"]; 5type UpdateLabelResponse = 6 RestEndpointMethodTypes["issues"]["updateLabel"]["response"];
In order to get types beyond parameters and responses, check out @octokit/openapi-types
, which is a direct transpilation from GitHub's official OpenAPI specification.
See CONTRIBUTING.md
No vulnerabilities found.
Reason
all changesets reviewed
Reason
12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
packaging workflow detected
Details
Reason
SAST tool is run on all commits
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-05-12
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More