{"name":"@octokit/plugin-enterprise-rest","version":"5.0.0","publishConfig":{"access":"public","tag":"latest"},"description":"Octokit plugin for GitHub Enterprise REST APIs","directories":{"test":"test"},"scripts":{"coverage":"tap --coverage-report=html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:code":"node scripts/update-endpoints/code","generate-routes":"node scripts/generate-routes","pretest":"npm run lint","test":"tap --coverage test.js","lint":"prettier --check '{ghe-*,scripts,src}/**/*' README.md package.json test.js","lint:fix":"prettier --write '{ghe-*,scripts,src}/**/*' README.md package.json test.js"},"repository":{"type":"git","url":"git+https://github.com/octokit/plugin-enterprise-rest.js.git"},"keywords":["octokit","github","api","rest","plugin","enterprise"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","bugs":{"url":"https://github.com/octokit/plugin-enterprise-rest.js/issues"},"homepage":"https://github.com/octokit/plugin-enterprise-rest.js#readme","devDependencies":{"@octokit/graphql":"^4.2.0","lodash.camelcase":"^4.3.0","make-dir":"^3.0.0","npm-run-all":"^4.1.5","prettier":"^1.18.2","semantic-release":"^15.13.25","simple-mock":"^0.8.0","sort-keys":"^4.0.0","tap":"^14.0.0"},"dependencies":{},"gitHead":"a2d330fc1d5c5d1f03564438b41ade1cfb32f257","_id":"@octokit/plugin-enterprise-rest@5.0.0","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-InAX5yamRs02L/eMxmvx2towbvAa+1rgx5qH3oEv7tELH901S7ciTRn1Nl23P5zcidmM4YHp0tQb5ZvcAl/eHw==","shasum":"877b8183bce823512613f963e3c15dd6dff579e6","tarball":"http://registry-npm.ywwl.com/@octokit/plugin-enterprise-rest/download/@octokit/plugin-enterprise-rest-5.0.0.tgz","fileCount":37,"unpackedSize":8827196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmVbOCRA9TVsSAnZWagAAhKUP/15mGIFymHf9MiiaAD/G\nsk71QpPRSgkZIkyHf64k27tPNmzuz2u8VrSbcK1qaGLRiPytWqS1/4ZyP02x\n0gH5yOhu4eKbwGIMuOZjY14VxoBZ3uobvcj1jNlTwHPteLdI0f2b0WZEU8yO\nkse00GVQCmBrmCb7FxLM/VrvYvkCGILcJ5ggN/geP2dWQeqIp8w7T3I5civL\ntcWYQtNsLVmUjtAWzgLpMEjs+1UObdIQw6QcPwM578xOzU2SN+2zfreLTbT0\n064iU4jCwGwBwncDAAIUWq9MgA2MvLAfVd+Bxm8NvjdEG+sBREt+8kPmfJDJ\nXpXt+awcY+ms81mlN2R1+2ToYOyiD9OkzW4kR2A2a5z+IqYOt1XDEeck0GUE\niCQ21LjN1z7rFmFCa3aPufHMdUzEljTEKm1B5WK8DW5Seyq4ntRaCWddOcmo\n87RvYBkTiLg+aqfrDbAZnacbMx9GU9ICy6sQdeEdUHLzLDiD94cTuFzi5ehD\njQ94mNnAkwPfLGkn4SM+hV6kGi/eYlEo7IoXwdFlWqgPlRiKtjU4IIjZFzbd\nCRxXWrw3gMXglw3mCWDJ5VvM0fBiHWGVowNghrF5fhnyoHrnYcJ5995ljT9G\nVaKPifCgHfGadrwvveGBKvKpCVnYwDZHxzWBIz8qZgTaWa2bS1MgJpf4mEtt\nudI0\r\n=3u+f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9YFD+dTamahZrf9I2nxD/A72VoAIT+Ru3kW853bGj8AiEA5YnQSbNsmxIt7ymNxdkXoYNZipA0OtojbiGt6N6OX+A="}],"size":717341,"noattachment":false,"key":"/@octokit/plugin-enterprise-rest/-/@octokit/plugin-enterprise-rest-5.0.0.tgz"},"maintainers":[{"name":"bkeepers","email":"brandon@opensoul.org"},{"name":"gr2m","email":"gregor@martynus.net"},{"name":"octokitbot","email":"octokitbot@martynus.net"}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-enterprise-rest_5.0.0_1570330317523_0.758886449449516"},"_hasShrinkwrap":false,"readme":"# plugin-enterprise-rest.js\n\n> Octokit plugin for GitHub Enterprise REST APIs\n\n[![@latest](https://img.shields.io/npm/v/@octokit/plugin-enterprise-rest.svg)](https://www.npmjs.com/package/@octokit/plugin-enterprise-rest)\n![Build Status](https://github.com/octokit/plugin-enterprise-rest.js/workflows/Test/badge.svg)\n[![Greenkeeper badge](https://badges.greenkeeper.io/octokit/plugin-enterprise-rest.js.svg)](https://greenkeeper.io/)\n\n`@octokit/rest` does not include methods for Enterprise Administration as they are not usable against https://api.github.com. This plugin adds these endpoints based on the GitHub Enterprise version you need.\n\n## Usage\n\n```js\nconst Octokit = require(\"@octokit/rest\").plugin(\n  require(\"@octokit/plugin-enterprise-rest/ghe-2.18\")\n);\nconst octokit = new Octokit({\n  baseUrl: \"https://github.acme-inc.com/api/v3\"\n});\n\noctokit.enterpriseAdmin.promoteOrdinaryUserToSiteAdministrator({\n  username: \"octocat\"\n});\n```\n\nThere can be differences in REST API between `api.github.com` and the different GitHub Enterprise versions. Some of the endpoint methods from `@octokit/rest` might not work. For these cases you can load the endpoint methods for all scopes for a certain GitHub Enterprise version, not only the `.enterprise` scope. This will override existing endpoint methods.\n\n```js\nconst Octokit = require(\"@octokit/rest\").plugin(\n  require(\"@octokit/plugin-enterprise-rest/ghe-2.18/all\")\n);\nconst octokit = new Octokit({\n  baseUrl: \"https://github.acme-inc.com/api/v3\"\n});\n\noctokit.issues.addLabels({\n  owner,\n  repo,\n  number,\n  labels: [\"foo\", \"bar\"]\n});\n// now sends `[\"foo\", \"bar\"]` in the request body, instead of `{\"labels\": [\"foo\", \"bar\"]}`\n```\n\n## API docs\n\nSee the `README.md` files in the `ghe-*` folders for a list of available endpoint methods for the respective GitHub Enterprise version.\n\n## How it works\n\nThe route definitions for the currently supported GitHub Enterprise versions are build automatically from [`@octokit/routes`](https://github.com/octokit/routes). Each time there is a new `@octokit/routes` release, [Greenkeeper](https://greenkeeper.io/) will send a pull request which updates the dependency in `package.json` and `package-lock.json`. That kicks of a build on Travis CI where the `greenkeeper-routes-update` script is run. If there is a change, the script updates the `*.json` definition files in the pull request.\n\n## LICENSE\n\n[MIT](LICENSE)\n","publish_time":1570330317717,"_cnpm_publish_time":1570330317717,"dist-tags":{"latest":"6.0.1"}}