{"name":"github-api","version":"3.2.2","license":"BSD-3-Clause-Clear","description":"A higher-level wrapper around the Github API.","main":"dist/components/GitHub.js","contributors":[{"name":"Ændrew Rininsland","email":"aendrew.rininsland@thetimes.co.uk","url":"http://www.aendrew.com"},{"name":"Aurelio De Rosa","email":"a.derosa@audero.it","url":"http://www.audero.it/"},{"name":"Clay Reimann","email":"clayreimann@gmail.com","url":"http://clayreimann.me"},{"name":"Michael Aufreiter","url":"http://substance.io"},{"name":"Mathieu Dutour","email":"mathieu@dutour.me","url":"https://github.com/mathieudutour"}],"scripts":{"clean":"gulp clean","build":"gulp build","test":"mocha --opts ./mocha.opts test/*.spec.js","test-coverage":"NODE_ENV=test nyc mocha --opts ./mocha.opts test/*.spec.js","test-verbose":"DEBUG=github* npm test","lint":"gulp lint","make-docs":"jsdoc -c .jsdoc.json --verbose","release":"./release.sh","codecov":"nyc report --reporter=text-lcov > coverage.lcov && codecov"},"babel":{"presets":["es2015"],"plugins":[["add-module-exports","transform-es2015-modules-umd"]],"env":{"development":{"sourceMaps":"inline"},"test":{"plugins":["istanbul"]}}},"nyc":{"sourceMap":false,"instrument":false},"dependencies":{"axios":"^0.19.0","debug":"^2.2.0","js-base64":"^2.1.9","utf8":"^2.1.1"},"devDependencies":{"babel-core":"^6.7.7","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-istanbul":"3.0.0","babel-plugin-transform-es2015-modules-umd":"^6.5.0","babel-preset-es2015":"^6.5.0","babel-register":"^6.7.2","babelify":"^7.3.0","browserify":"^13.0.0","codecov":"^1.0.1","del":"^2.2.0","eslint-config-google":"^0.7.0","eslint-plugin-mocha":"^4.7.0","gulp":"^3.9.0","gulp-babel":"^6.1.2","gulp-eslint":"^3.0.1","gulp-jscs":"^4.0.0","gulp-jscs-stylish":"^1.3.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^2.2.0","gulp-uglify":"^2.0.0","jsdoc":"^3.4.0","minami":"^1.1.1","mocha":"^3.1.2","must":"^0.13.1","nock":"^9.0.2","nyc":"9.0.1","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0"},"repository":{"type":"git","url":"git://github.com/github-tools/github.git"},"keywords":["github","api"],"bugs":{"url":"https://github.com/github-tools/github/issues"},"gitHead":"bf3a408cf11a5146b09f7a71e1a3628f36254c89","homepage":"https://github.com/github-tools/github#readme","_id":"github-api@3.2.2","_nodeVersion":"11.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-ysvdizimopV3OPiK3hQU4BwpnFcRxtRikkvGP6tSw/KkZZ5rzl82hm9QphWfaaDJRdEcqMb87533E2eSv1g54w==","shasum":"e6965cde7cb8236a308a4032997cdc919041be73","tarball":"http://registry-npm.ywwl.com/github-api/download/github-api-3.2.2.tgz","fileCount":36,"unpackedSize":2569858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCATtCRA9TVsSAnZWagAAkB4QAKEuzai2d7XeZniSWjRv\n/Ox4Iwzsam6n7zd76xuL6kpXCDFDNM9Z/SMDn5SV/m2iXPPwTyZS3Z1rhVJp\nWPX06TjnAioQmWF9LrOjHMEvqCnHTgSDYY/0LBIHBUurAebH2Ih46HKyKKas\nBf6oNnLqhLMybtqUE7CiNJrS+TAb106MU97OPmPfRBWV6T2O8xHUumV6hmKO\nu6M1i0kMwjy2kJe3LQDMNDC9ixxrS2WRAbcWUHeRZi2UNE5vL6+njnRcd6YO\n3OLhDkc9aZlWx5+I11iJ4yinIDnYz+METHM/pHv8wOcQlCAx0OvLhtUYNPvN\n8pYX2MnBCm9iLikWMEeGOk0KkjRVm4WWyZXWBW4Jyi5yOtNbgHBMV7C5oyhm\nSLwQWXruNENglCWGH9di4ZjSdZMBlXpbLgLtP01VLaADNH7MfyVUVgDxLaun\n8hXsJnZJPI/JqMqaAG1Gr4KMT5S8ILOkav603xdneV1q97sTE5Hr6tSKac1J\n6/aabaiBJkkg0+xm5Sr3VtWYFFpp7XqDRDuOyBJ+gP52KHoXRqHWX0XuszOt\nzt0bfMQwl7i0/YB9GOOFTq5eKis8kElfor60h80nV6tSXhadutK2NjeGrlPw\njo2tBjxpjJm5Fe2H270/JV4TltkVAO0+UGLtemHFViN+4L+VJ1t/7czONoEg\nELak\r\n=ry1E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC8sOWZ7eHuRVE3XZDinoxbbbIJsJm8nlWDHi4SitbAGAiEA/c1E9YIfbN+AEGbRNXF9jt0kuJRZExHSl9pbw2+RCAU="}],"size":510284,"noattachment":false,"key":"/github-api/-/github-api-3.2.2.tgz"},"maintainers":[{"email":"aendrew@aendrew.com","name":"aendrew"},{"email":"a.derosa@audero.it","name":"aurelioderosa"},{"email":"clayreimann@gmail.com","name":"clayreimann"},{"email":"nicholas.ingalls@gmail.com","name":"ingalls"},{"email":"michael@substance.io","name":"michael"}],"_npmUser":{"name":"clayreimann","email":"clayreimann@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/github-api_3.2.2_1560806636510_0.2632061856493437"},"_hasShrinkwrap":false,"readme":"# Maintainers wanted\n[Apply within](https://github.com/github-tools/github/issues/539)\n\n# Github.js\n\n[![Downloads per month](https://img.shields.io/npm/dm/github-api.svg?maxAge=2592000)][npm-package]\n[![Latest version](https://img.shields.io/npm/v/github-api.svg?maxAge=3600)][npm-package]\n[![Gitter](https://img.shields.io/gitter/room/github-tools/github.js.svg?maxAge=2592000)][gitter]\n[![Travis](https://img.shields.io/travis/github-tools/github.svg?maxAge=60)][travis-ci]\n[![Codecov](https://img.shields.io/codecov/c/github/github-tools/github.svg?maxAge=2592000)][codecov]\n\n`Github.js` provides a minimal higher-level wrapper around Github's API.\n\n## Usage\n\n```javascript\n/*\n   Data can be retrieved from the API either using callbacks (as in versions < 1.0)\n   or using a new promise-based API. The promise-based API returns the raw Axios\n   request promise.\n */\nimport GitHub from 'github-api';\n\n// unauthenticated client\nconst gh = new GitHub();\nlet gist = gh.getGist(); // not a gist yet\ngist.create({\n   public: true,\n   description: 'My first gist',\n   files: {\n      \"file1.txt\": {\n         content: \"Aren't gists great!\"\n      }\n   }\n}).then(function({data}) {\n   // Promises!\n   let createdGist = data;\n   return gist.read();\n}).then(function({data}) {\n   let retrievedGist = data;\n   // do interesting things\n});\n```\n\n```javascript\nvar GitHub = require('github-api');\n\n// basic auth\nvar gh = new GitHub({\n   username: 'FOO',\n   password: 'NotFoo'\n   /* also acceptable:\n      token: 'MY_OAUTH_TOKEN'\n    */\n});\n\nvar me = gh.getUser(); // no user specified defaults to the user for whom credentials were provided\nme.listNotifications(function(err, notifications) {\n   // do some stuff\n});\n\nvar clayreimann = gh.getUser('clayreimann');\nclayreimann.listStarredRepos(function(err, repos) {\n   // look at all the starred repos!\n});\n```\n\n## API Documentation\n\n[API documentation][docs] is hosted on github pages, and is generated from JSDoc; any contributions\nshould include updated JSDoc.\n\n## Installation\n`Github.js` is available from `npm` or [unpkg][unpkg].\n\n```shell\nnpm install github-api\n```\n\n```html\n<!-- just github-api source (5.3kb) -->\n<script src=\"https://unpkg.com/github-api/dist/GitHub.min.js\"></script>\n\n<!-- standalone (20.3kb) -->\n<script src=\"https://unpkg.com/github-api/dist/GitHub.bundle.min.js\"></script>\n```\n\n## Compatibility\n`Github.js` is tested on node's LTS and current versions.\n\n[codecov]: https://codecov.io/github/github-tools/github?branch=master\n[docs]: http://github-tools.github.io/github/\n[gitter]: https://gitter.im/github-tools/github\n[npm-package]: https://www.npmjs.com/package/github-api/\n[unpkg]: https://unpkg.com/github-api/\n[travis-ci]: https://travis-ci.org/github-tools/github\n\n## Contributing\n\nWe welcome contributions of all types! This section will guide you through setting up your development environment.\n\n### Setup\n\n1. [Install Node](https://nodejs.org/en/) version 8,10 or 11. It can often help to use a Node version switcher such as [NVM](https://github.com/nvm-sh/nvm).\n2. Fork this repo to your GitHub account.\n3. Clone the fork to your development machine (`git clone https://github.com/{YOUR_USERNAME}/github`).\n4. From the root of the cloned repo, run `npm install`.\n5. Email jaredrewerts@gmail.com with the subject **GitHub API - Personal Access Token Request**\n\nA personal access token for our test user, @github-tools-test, will be generated for you.\n\n6. Set the environment variable `GHTOOLS_USER` to `github-tools-test`.\n\n`export GHTOOLS_USER=github-tools-test`\n\n7. Set the environment variable `GHTOOLS_PASSWORD` to the personal access token that was generated for you.\n\n`export GHTOOLS_PASSWORD={YOUR_PAT}`\n\n**NOTE** Windows users can use [this guide](http://www.dowdandassociates.com/blog/content/howto-set-an-environment-variable-in-windows-command-line-and-registry/) to learn about setting environment variables on Windows.\n\n### Tests\n\nThe main way we write code for `github-api` is using test-driven development. We use Mocha to run our tests. Given that the bulk of this library is just interacting with GitHub's API, nearly all of our tests are integration tests. \n\nTo run the test suite, run `npm run test`.\n","publish_time":1560806636702,"_cnpm_publish_time":1560806636702,"dist-tags":{"latest":"3.4.0"}}