{"name":"@octokit/plugin-enterprise-rest","version":"2.1.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":"18.2.0","coveralls":"^3.0.2","lodash.camelcase":"^4.3.0","make-dir":"^1.3.0","semantic-release":"^15.10.7","simple-mock":"^0.8.0","sort-keys":"^2.0.0","standard":"^12.0.1","standard-markdown":"^5.0.1","tap":"^12.0.1"},"dependencies":{},"gitHead":"b4eafa913d2ef3b571bc53cda76a70215d6bc1ef","_id":"@octokit/plugin-enterprise-rest@2.1.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"dist":{"integrity":"sha512-Rx7hpUsLt4MBgEuKiRFi+NNzKTeo/3YXveEDFD2xuNFmPTtgJLx580/C1Sci83kBFkMWXf6Sk57ZrBG+f5jWIw==","shasum":"e5fa5213627a8910fd151fab2934594e66fce8fd","tarball":"http://registry-npm.ywwl.com/@octokit/plugin-enterprise-rest/download/@octokit/plugin-enterprise-rest-2.1.0.tgz","fileCount":28,"unpackedSize":1073798,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSMTnCRA9TVsSAnZWagAA5PEQAIYqpftxDTMjgVnI0otq\nIzkGftBS6UNMOe+t28prjPly8Uw/lmr637caT1hiLeMkd3zZltB6sufhAq5r\nBtNv60L4j7H4TbSKG5R39iKi2UM5PN50CMoU2YjKTDaeLBieTzYzMmunPgDo\nvIhZbXJ/ugpGoZXwlBHtWbzV5p9Op/xpZh5RR3XcjyfiQAdqvpGutWAtBvoL\nC3UHHgkYQqMfe/K4H0x1KpsOy2O9+folFDzPhD1vQ3c+o5biGz61R/9/ZrEY\nZuS5rxU+UHdG2DAQCUzygcNieGq0S2iSgLL68h9AFzH5Tz1RLOkuoFVh6F0a\nYxiNnnovYwkAYjmnqKGXayeEKHgsGo/RjEI1qQxq0vbVI/D57CkFFCmQDB4A\n6QbtW8QgXAR/7QmtciEMvGzyQbdAPLArtdmYNo4+alfu4Jipxhy5EtwAC6WG\nbsd9DK0Z3veim7S50eVrU+aiF9CnPfqNmap9XK5+Q/vc37B0tM8eQouoK3ZN\n/8jNDbuhTFQMn9Hm+13Gzp2gJtDLN65enm94jrivVI2df2TFsuwfSJt2nMFb\n3ifUdAmc4fAjZ4m2a+P94HKiYuiGKBmjBZU+PF3kF3gyT87HLmZdX8pvXWC7\nzoQHgqnvXrNHHEA7Ti0WWH356qWvjWYiUBsqWICHWnOfW9mFmqxJ2+C6/pVS\n3ST0\r\n=cTP1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyGEzTQJO1TMAT9d9sb30G8uCbeSqWuAYUjYRhlSfBdAIhALgx0ORrVzUPFWXFggZSXgDoknjm1CXfH/DJ1AN5GF2B"}],"size":82902,"noattachment":false,"key":"/@octokit/plugin-enterprise-rest/-/@octokit/plugin-enterprise-rest-2.1.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_2.1.0_1548272871031_0.6543610337336043"},"_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":1548272871159,"_cnpm_publish_time":1548272871159,"dist-tags":{"latest":"6.0.1"}}