- Notifications
You must be signed in to change notification settings - Fork74
GitHub REST API client for JavaScript
License
octokit/rest.js
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
GitHub REST API client for JavaScript
| Browsers | Load@octokit/rest directly fromesm.sh<scripttype="module">import{Octokit}from"https://esm.sh/@octokit/rest";</script> |
|---|---|
| Node | Install with 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
We would love you to contribute to@octokit/rest, pull requests are very welcome! Please seeCONTRIBUTING.md for more information.
@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
About
GitHub REST API client for JavaScript
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.