{"name":"@octokit/plugin-enterprise-rest","version":"3.6.2","publishConfig":{"access":"public","tag":"latest"},"description":"Octokit plugin for GitHub Enterprise REST APIs","directories":{"test":"test"},"scripts":{"coverage":"tap --coverage-report=html","coverage:upload":"npm run test && tap --coverage-report=text-lcov | coveralls","generate-routes":"node scripts/generate-routes","pretest":"standard && standard-markdown *.md","test":"tap --coverage 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/routes":"20.9.0","coveralls":"^3.0.2","lodash.camelcase":"^4.3.0","make-dir":"^3.0.0","semantic-release":"^15.13.12","simple-mock":"^0.8.0","sort-keys":"^3.0.0","standard":"^13.0.1","standard-markdown":"^5.0.1","tap":"^14.0.0"},"dependencies":{},"gitHead":"9569077215c4e0cb40208257dc2367a7027bb02e","_id":"@octokit/plugin-enterprise-rest@3.6.2","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-3wF5eueS5OHQYuAEudkpN+xVeUsg8vYEMMenEzLphUZ7PRZ8OJtDcsreL3ad9zxXmBbaFWzLmFcdob5CLyZftA==","shasum":"74de25bef21e0182b4fa03a8678cd00a4e67e561","tarball":"http://registry-npm.ywwl.com/@octokit/plugin-enterprise-rest/download/@octokit/plugin-enterprise-rest-3.6.2.tgz","fileCount":28,"unpackedSize":1150293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdL5jUCRA9TVsSAnZWagAAEvUP/3rkhaNlWRNowWYUOp1F\niIGpwWqMkVIC/yWlDw50KO26bfdjyqzZh7nn7r0MaB6eLb+3BFe1Ak6SiCUc\n4KdBLAltqxLbiDM9UN+u+eRPJwbCvD+Smjl/e+sndz3xpwTZZG2r+VZxUYEX\nY8z5OUY8aARXmoqvDqwT9DFg9T73QQ0gywPwP0Q4Nj6rZLP1l8m2N7clXNgy\nVHOJP1yNHVcpmoD8dpc54rmFWHJrPUjIqPl41U/0vk+unterH7E//VO2IglG\n49rgRPdAF4fKpBlzLpNHhh1GjL05bB1rYHmuPajd8PmkHiUAaeBFevn/obPj\nxgQe5r4qJk36sxJK03o4TdlljzTulIcvnx92cBzXK7mjoS2w2PQco9GBocNs\nMz5USv6jI1oUcckNqByxEY7O3VoC/MI+7vbqg/HQ7hn9Em5m+/EJZUDdOV/Z\n157PtnK0jNBiU3ie93QPxCMDyfNbqEUxbrZxmsPM5+Yf94YPU6NTAlH/2LcC\n6hNLlU9cdgjQMNdRj3gi3803PSgGoXHyl2mZYfUOw07KE1meH5kfpsRiIiHq\n0zu0TRpuCvkKugINYd3zRnZFM8SZwRy5Gi1QgUMCTPT0vskwQyBJP8aQkYcV\nfV16xWJw1rOBenAahQVfJFKPj8K/974sQRxD3P5ah6GzJH/6LFWBYOKfI63e\nAbqi\r\n=3a8z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJbx3rsFRJkMlySqqhWvzbPNIEUL6cJhS2SeEl2Sd9ZQIgQ6YIT13HQ7FTGTU3b5f3V6J9WeL/m42NEmu0yBzuHrk="}],"size":88465,"noattachment":false,"key":"/@octokit/plugin-enterprise-rest/-/@octokit/plugin-enterprise-rest-3.6.2.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_3.6.2_1563400403666_0.5260764764254937"},"_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":1563400403791,"_cnpm_publish_time":1563400403791,"dist-tags":{"latest":"6.0.1"}}