{"name":"@octokit/rest","version":"20.1.2","keywords":["octokit","github","rest","api-client"],"author":{"url":"https://github.com/gr2m","name":"Gregor Martynus"},"license":"MIT","_id":"@octokit/rest@20.1.2","maintainers":[{"name":"gr2m","email":"gregor@martynus.net"},{"name":"octokitbot","email":"security+octokitbot@github.com"},{"name":"kfcampbell","email":"kfcampbell@github.com"},{"name":"nickfloyd","email":"nicholas.floyd.info@gmail.com"}],"contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"url":"https://github.com/gr2m","name":"Gregor Martynus"}],"homepage":"https://github.com/octokit/rest.js#readme","bugs":{"url":"https://github.com/octokit/rest.js/issues"},"dist":{"shasum":"1d74d0c72ade0d64f7c5416448d5c885f5e3ccc4","tarball":"http://registry-npm.ywwl.com/@octokit/rest/download/@octokit/rest-20.1.2.tgz","fileCount":11,"integrity":"sha512-GmYiltypkHHtihFwPRxlaorG5R9VAHuk/vbszVoRTGXnAsY60wYLkh/E2XiFmdZmqrisw+9FaazS1i5SbdWYgA==","signatures":[{"sig":"MEUCIDyYyQ+uzoR+a9Vs3+LzCVKC1SdK6qz5b2YRP+Lz2crIAiEAm/FUZI5MlZJann2kAdVIzjP8yO9gTQhn1aWbbPgxdHc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@octokit%2frest@20.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9905,"size":3841,"noattachment":false,"key":"/@octokit/rest/-/@octokit/rest-20.1.2.tgz"},"main":"dist-node/index.js","types":"dist-types/index.d.ts","module":"dist-web/index.js","source":"dist-src/index.js","engines":{"node":">= 18"},"gitHead":"711f2ee36dc349cc3c35d8f4a610886a59082c80","_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"repository":{"url":"git+https://github.com/octokit/rest.js.git","type":"git"},"_npmVersion":"10.9.2","description":"GitHub REST API client for Node.js","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"@octokit/core":"^5.0.2","@octokit/plugin-request-log":"^4.0.0","@octokit/plugin-paginate-rest":"11.4.4-cjs.2","@octokit/plugin-rest-endpoint-methods":"13.3.2-cjs.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"glob":"^10.3.10","jest":"^29.7.0","nock":"^13.5.0","undici":"^6.4.0","esbuild":"~0.25.0","ts-jest":"^29.2.5","prettier":"^3.5.1","fetch-mock":"^11.1.5","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^20.11.5","@octokit/request":"^8.4.1","semantic-release":"^23.0.0","@octokit/auth-app":"^6.0.3","@octokit/tsconfig":"^2.0.0","@octokit/auth-action":"^4.0.1","@octokit/fixtures-server":"^7.0.10","semantic-release-plugin-update-version-in-files":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/rest_20.1.2_1740608428539_0.8040272003987636","host":"s3://npm-registry-packages-npm-production"},"readme":"# rest.js\n\n> GitHub REST API client for JavaScript\n\n[![@latest](https://img.shields.io/npm/v/@octokit/rest.svg)](https://www.npmjs.com/package/@octokit/rest)\n[![Build Status](https://github.com/octokit/rest.js/workflows/Test/badge.svg)](https://github.com/octokit/rest.js/actions?query=workflow%3ATest+branch%3Amain)\n\n## Usage\n\n<table>\n<tbody valign=top align=left>\n<tr><th>\nBrowsers\n</th><td width=100%>\nLoad <code>@octokit/rest</code> directly from <a href=\"https://esm.sh\">esm.sh</a>\n\n```html\n<script type=\"module\">\n  import { Octokit } from \"https://esm.sh/@octokit/rest\";\n</script>\n```\n\n</td></tr>\n<tr><th>\nNode\n</th><td>\n\nInstall with <code>npm install @octokit/rest</code>\n\n```js\nimport { Octokit } from \"@octokit/rest\";\n```\n\n</td></tr>\n</tbody>\n</table>\n\n> [!IMPORTANT]\n> As we use [conditional exports](https://nodejs.org/api/packages.html#conditional-exports), you will need to adapt your `tsconfig.json` by setting `\"moduleResolution\": \"node16\", \"module\": \"node16\"`.\n>\n> See the TypeScript docs on [package.json \"exports\"](https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports).<br>\n> See this [helpful guide on transitioning to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) from [@sindresorhus](https://github.com/sindresorhus)\n\n```js\nconst octokit = new Octokit();\n\n// Compare: https://docs.github.com/en/rest/reference/repos/#list-organization-repositories\noctokit.rest.repos\n  .listForOrg({\n    org: \"octokit\",\n    type: \"public\",\n  })\n  .then(({ data }) => {\n    // handle data\n  });\n```\n\nSee https://octokit.github.io/rest.js for full documentation.\n\n> [!IMPORTANT]\n> As we use [conditional exports](https://nodejs.org/api/packages.html#conditional-exports), you will need to adapt your `tsconfig.json` by setting `\"moduleResolution\": \"node16\", \"module\": \"node16\"`.\n>\n> See the TypeScript docs on [package.json \"exports\"](https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports).<br>\n> See this [helpful guide on transitioning to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) from [@sindresorhus](https://github.com/sindresorhus)\n\n## Contributing\n\nWe would love you to contribute to `@octokit/rest`, pull requests are very welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information.\n\n## Credits\n\n`@octokit/rest` was originally created as [`node-github`](https://www.npmjs.com/package/github) in 2012 by Mike de Boer from Cloud9 IDE, Inc. [The original commit](https://github.blog/2020-04-09-from-48k-lines-of-code-to-10-the-story-of-githubs-javascript-sdk/) is from 2010 which predates the npm registry.\n\nIt 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](https://github.blog/2020-04-09-from-48k-lines-of-code-to-10-the-story-of-githubs-javascript-sdk/)\n\n## LICENSE\n\n[MIT](LICENSE)\n","publish_time":1740608428740,"_cnpm_publish_time":1740608428740,"dist-tags":{"beta":"21.0.0-beta.4","deprecations-for-v16":"15.18.1","latest":"22.0.1","release-15.x":"15.18.3","release-16.x":"16.43.2","release-17.x":"17.11.0","release-18.x":"18.12.0","release-19.x":"19.0.13","release-20.x":"20.1.2","release-21.x":"21.1.1"}}