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/types
Shared TypeScript definitions for Octokit projects
@octokit/plugin-enterprise-rest
Octokit plugin for GitHub Enterprise REST APIs
@octokit/plugin-paginate-rest
Octokit plugin to paginate REST API endpoint responses
@octokit/endpoint
Turns REST API endpoints into generic request options
Octokit plugin adding one method for all of api.github.com REST API endpoints
npm install @octokit/plugin-rest-endpoint-methods
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
116 Stars
911 Commits
57 Forks
13 Watching
16 Branches
26 Contributors
Updated on 27 Nov 2024
TypeScript (98.54%)
JavaScript (1.46%)
Cumulative downloads
Total Downloads
Last day
-2.3%
1,714,758
Compared to previous day
Last week
6.6%
9,450,798
Compared to previous week
Last month
13%
37,901,751
Compared to previous month
Last year
14.3%
368,899,695
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
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool is run on all commits
Details
Reason
10 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 9
Reason
security policy file detected
Details
Reason
1 existing vulnerabilities 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 2024-11-18
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