{"name":"@octokit/rest","version":"22.0.0","keywords":["octokit","github","rest","api-client"],"author":{"url":"https://github.com/gr2m","name":"Gregor Martynus"},"license":"MIT","_id":"@octokit/rest@22.0.0","maintainers":[{"name":"octokitbot","email":"security+octokitbot@github.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":"9026f47dacba9c605da3d43cce9432c4c532dc5a","tarball":"http://registry-npm.ywwl.com/@octokit/rest/download/@octokit/rest-22.0.0.tgz","fileCount":9,"integrity":"sha512-z6tmTu9BTnw51jYGulxrlernpsQYXpui1RK21vmXn8yF5bp6iX16yfTtJYGK5Mh1qDkvDOmp2n8sRMcQmR8jiA==","signatures":[{"sig":"MEYCIQDwC6qrnK2xMtV/Ch+1yoMHTP7FyRp8icpXkeIwZSa/0wIhALjimc2aJaSjMEcHyiEpkLTpWbahbm+NV5tWJqC823+b","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@octokit%2frest@22.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8276,"size":3474,"noattachment":false,"key":"/@octokit/rest/-/@octokit/rest-22.0.0.tgz"},"type":"module","types":"dist-types/index.d.ts","engines":{"node":">= 20"},"exports":{".":{"types":"./dist-types/index.d.ts","import":"./dist-src/index.js","default":"./dist-src/index.js"}},"gitHead":"77530abd535b0c97017de24a035018d36ba93f71","_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.15.0","dependencies":{"@octokit/core":"^7.0.2","@octokit/plugin-request-log":"^6.0.0","@octokit/plugin-paginate-rest":"^13.0.1","@octokit/plugin-rest-endpoint-methods":"^16.0.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"glob":"^11.0.0","nock":"^14.0.0-beta.8","undici":"^6.4.0","vitest":"^3.0.0","esbuild":"^0.25.0","prettier":"^3.2.4","fetch-mock":"^12.0.0","typescript":"^5.3.3","@types/node":"^22.0.0","@octokit/request":"^10.0.0","@octokit/auth-app":"^8.0.1","@octokit/tsconfig":"^4.0.0","@vitest/coverage-v8":"^3.0.0","@octokit/auth-action":"^6.0.1","@octokit/fixtures-server":"^8.1.0","semantic-release-plugin-update-version-in-files":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rest_22.0.0_1748214770605_0.9453381680720558","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":1748214770784,"_cnpm_publish_time":1748214770784,"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"}}