Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GitHub REST API client for JavaScript

License

NotificationsYou must be signed in to change notification settings

octokit/rest.js

GitHub REST API client for JavaScript

@latestBuild Status

Usage

BrowsersLoad@octokit/rest directly fromesm.sh
<scripttype="module">import{Octokit}from"https://esm.sh/@octokit/rest";</script>
Node

Install withnpm install @octokit/rest

import{Octokit}from"@octokit/rest";

Important

As we useconditional exports, you will need to adapt yourtsconfig.json by setting"moduleResolution": "node16", "module": "node16".

See the TypeScript docs onpackage.json "exports".
See thishelpful guide on transitioning to ESM from@sindresorhus

constoctokit=newOctokit();// Compare: https://docs.github.com/en/rest/reference/repos/#list-organization-repositoriesoctokit.rest.repos.listForOrg({org:"octokit",type:"public",}).then(({ data})=>{// handle data});

Seehttps://octokit.github.io/rest.js for full documentation.

Important

As we useconditional exports, you will need to adapt yourtsconfig.json by setting"moduleResolution": "node16", "module": "node16".

See the TypeScript docs onpackage.json "exports".
See thishelpful guide on transitioning to ESM from@sindresorhus

Contributing

We would love you to contribute to@octokit/rest, pull requests are very welcome! Please seeCONTRIBUTING.md for more information.

Credits

@octokit/rest was originally created asnode-github in 2012 by Mike de Boer from Cloud9 IDE, Inc.The original commit is from 2010 which predates the npm registry.

It was adopted and renamed by GitHub in 2017. Learn more about its origin on GitHub's blog:From 48k lines of code to 10—the story of GitHub’s JavaScript SDK

LICENSE

MIT


[8]ページ先頭

©2009-2025 Movatter.jp