{"name":"@octokit/plugin-enterprise-rest","version":"3.2.0","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.1.1","coveralls":"^3.0.2","lodash.camelcase":"^4.3.0","make-dir":"^3.0.0","semantic-release":"^15.13.8","simple-mock":"^0.8.0","sort-keys":"^2.0.0","standard":"^12.0.1","standard-markdown":"^5.0.1","tap":"^12.6.1"},"dependencies":{},"gitHead":"4716ec79abef5fa9a160112a9594c199b0f6a5c0","_id":"@octokit/plugin-enterprise-rest@3.2.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.3","_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"dist":{"integrity":"sha512-2f6xO5G/EoLBowWB5D/goKwsrabHlmH+i2vJEpHd4kb6MFWS5kCz7EnyxYmRR9H8JxEOT6dBO5z4xuM8FfBw/w==","shasum":"5b6a385eca56b7e44c1d928802cd6e88776f5577","tarball":"http://registry-npm.ywwl.com/@octokit/plugin-enterprise-rest/download/@octokit/plugin-enterprise-rest-3.2.0.tgz","fileCount":23,"unpackedSize":851118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuSHjCRA9TVsSAnZWagAAZegQAKHrq4N2AXXOf9M0YceG\nmNq5a3rEpxZVkMVcQyWanK8VF9A6QVqCY4H+1Gtp35nb/2D7Bg6Sg3B1MgCy\nHefx/3ezQklbwbd40oyb9nCPCmPxwOlVsRrrPQzUleju27y8QuD4gvuCkofW\n4IhNxJ9q/8ZU7wU+l840EuasK/QN39j89COYBjSJseRYyOeYoUvjAAUXFy1g\ncYsSE+uxA7zYGq+GvkumPQ8phZ81ytc61K53c6fjCHYarGs9VKXqRM8KpRbz\ncPUpY/MaxVE3aQPm1w4UD+mqDpcmjs4/0hXXpJx+Y5SAYVKsNMIXNq6Sm5Ke\nBEGAWOg+RIbnrb0z1BXZXgkQZZGsxnZyOZHh1K9BWdgiC1cCMHSJMQsrYR3K\ncqoBriyNyJcPwIN7u0ops8QhyNYNRctCRs0LqDsw33ihEnRnSXsG9kUE+ctz\nts1phPbDwEoEOe875Pz2AHoIWmUBGmOyc3GjBNr1YuMEHGb5oeeiMFKIt1IR\nTVRQ56s7BEZ0VJT+kUpBvzvXJM0rQMjkWUgsUIzLxj3d43bvmv34ChDgFlLK\nJuJ0rfkfcQaKHnwQ6RfZE7O6j4AzwGC9qkqP0WZmn3G3dmEBFjwtsX91VKth\nqSVinZaqRL90J/n5Nfe796R7bEFYfmLSNu3gsCT3ys/jV6qYJ7/XUuXEkvVQ\nqr05\r\n=fVoF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA92+CH9MnLu7APACmpKPx9Rqh5La0fDywqNpm5K98y5AiEAveP1eUJdzXkVX8BDs029DhthahVfJvw7RTdgfcIIeNk="}],"size":66369,"noattachment":false,"key":"/@octokit/plugin-enterprise-rest/-/@octokit/plugin-enterprise-rest-3.2.0.tgz"},"maintainers":[{"name":"bkeepers","email":"brandon@opensoul.org"},{"name":"gr2m","email":"gregor@martynus.net"},{"name":"octokitbot","email":"octokitbot@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-enterprise-rest_3.2.0_1555636706674_0.6269992417058463"},"_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":1555636706802,"_cnpm_publish_time":1555636706802,"dist-tags":{"latest":"6.0.1"}}