{"_id":"github-current-user","_rev":"370127","name":"github-current-user","description":"Verify the current GitHub user via their private keys","dist-tags":{"latest":"2.5.0"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"time":{"modified":"2021-07-26T06:57:58.000Z","created":"2015-04-26T20:39:50.155Z","2.5.0":"2016-03-19T21:45:28.559Z","2.4.1":"2015-04-29T22:50:35.478Z","2.4.0":"2015-04-29T06:19:17.541Z","2.3.0":"2015-04-29T05:26:50.315Z","2.2.2":"2015-04-28T18:30:16.592Z","2.2.1":"2015-04-28T00:12:11.188Z","2.2.0":"2015-04-28T00:04:15.103Z","2.1.2":"2015-04-27T08:09:58.046Z","2.1.1":"2015-04-27T03:51:15.303Z","2.1.0":"2015-04-27T03:29:11.685Z","2.0.0":"2015-04-27T02:52:07.606Z","1.0.0":"2015-04-26T20:39:50.155Z"},"users":{},"author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"versions":{"2.5.0":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.5.0","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bin":{"github-current-user":"cli.js"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.2.2","git-config-path":"^0.1.0","github-username":"^1.1.1","parse-git-config":"^0.3.1","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"ef36ef38c765f001019e03f0ad4a9adf1eebe0d8","_id":"github-current-user@2.5.0","_shasum":"7b145f125fcd3421407775854b6f3bbed9e78435","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"7b145f125fcd3421407775854b6f3bbed9e78435","size":1679,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.5.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/github-current-user-2.5.0.tgz_1458423928089_0.8488857571501285"},"directories":{},"publish_time":1458423928559,"_cnpm_publish_time":1458423928559,"_hasShrinkwrap":false},"2.4.1":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.4.1","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bin":{"github-current-user":"cli.js"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.2.2","git-config-path":"^0.1.0","github-username":"^1.1.1","parse-git-config":"^0.3.1","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"b23645caf5de05a868cc002d62a4254a21dd012c","_id":"github-current-user@2.4.1","_shasum":"ccd5766a1f5ab77371c6dc102dabc03694b390cb","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"ccd5766a1f5ab77371c6dc102dabc03694b390cb","size":1631,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.4.1.tgz"},"directories":{},"publish_time":1430347835478,"_cnpm_publish_time":1430347835478,"_hasShrinkwrap":false},"2.4.0":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.4.0","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bin":{"github-current-user":"cli.js"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.2.2","git-config-path":"^0.1.0","github-username":"^1.1.1","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"92c54a647280cbf4eb4052c294465a70deef937e","_id":"github-current-user@2.4.0","_shasum":"69f68a1627ac383dbfb741f25788bb326bb5b8ca","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"69f68a1627ac383dbfb741f25788bb326bb5b8ca","size":1692,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.4.0.tgz"},"directories":{},"publish_time":1430288357541,"_cnpm_publish_time":1430288357541,"_hasShrinkwrap":false},"2.3.0":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.3.0","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bin":{"github-current-user":"cli.js"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.2.2","git-config-path":"^0.1.0","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"5e23497ae6f66adc5541d486badff6dc485669d1","_id":"github-current-user@2.3.0","_shasum":"bc8265979b5c5bc1bf8f5ff3c975eafea81de742","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"bc8265979b5c5bc1bf8f5ff3c975eafea81de742","size":1877,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.3.0.tgz"},"directories":{},"publish_time":1430285210315,"_cnpm_publish_time":1430285210315,"_hasShrinkwrap":false},"2.2.2":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.2.2","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bin":{"github-current-user":"cli.js"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.2.2","git-config-path":"^0.1.0","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"b6e1eadbf83e982cadfd0b719784867c21d8fcf6","_id":"github-current-user@2.2.2","_shasum":"adc504e381992ed18789f8983ae3f51bd3ccd7fb","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"adc504e381992ed18789f8983ae3f51bd3ccd7fb","size":1746,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.2.2.tgz"},"directories":{},"publish_time":1430245816592,"_cnpm_publish_time":1430245816592,"_hasShrinkwrap":false},"2.2.1":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.2.1","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bin":{"github-current-user":"cli.js"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.2.1","git-config-path":"^0.1.0","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"7bbba0ad1de3edd76ab92d43b5901ba65613e7eb","_id":"github-current-user@2.2.1","_shasum":"904d8aa2f454f69fede062617411d5ab81800094","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"904d8aa2f454f69fede062617411d5ab81800094","size":1744,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.2.1.tgz"},"directories":{},"publish_time":1430179931188,"_cnpm_publish_time":1430179931188,"_hasShrinkwrap":false},"2.2.0":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.2.0","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bin":{"github-current-user":"cli.js"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.0.7","git-config-path":"^0.1.0","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"caddab6426a76fa7ff11ec69c7bb75e62de4be19","_id":"github-current-user@2.2.0","_shasum":"4bd3422959a27bc612164d79ac59b5a1db22a6ff","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"4bd3422959a27bc612164d79ac59b5a1db22a6ff","size":1746,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.2.0.tgz"},"directories":{},"publish_time":1430179455103,"_cnpm_publish_time":1430179455103,"_hasShrinkwrap":false},"2.1.2":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.1.2","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.0.7","git-config-path":"^0.1.0","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"ece59232892b0a9eaaa8844c1742e210dd7ff0d7","_id":"github-current-user@2.1.2","_shasum":"1db061d29583d2bb6cb758e70ded7f450c8f8ec5","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"1db061d29583d2bb6cb758e70ded7f450c8f8ec5","size":1549,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.1.2.tgz"},"directories":{},"publish_time":1430122198046,"_cnpm_publish_time":1430122198046,"_hasShrinkwrap":false},"2.1.1":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.1.1","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.0.7","git-config-path":"^0.1.0","git-user-email":"^0.2.1","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"d15a91d2481e2c8a8da3fe22e1413a6374b79475","_id":"github-current-user@2.1.1","_shasum":"2f09401c475338ededcd891fa5b3de83c24fc4f7","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"2f09401c475338ededcd891fa5b3de83c24fc4f7","size":1527,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.1.1.tgz"},"directories":{},"publish_time":1430106675303,"_cnpm_publish_time":1430106675303,"_hasShrinkwrap":false},"2.1.0":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.1.0","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"debug":"^2.1.3","ghsign":"^1.0.6","git-config-path":"^0.1.0","git-user-email":"^0.2.1","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"335e67f3ff9f2b321ea5a2976847e13d3a8e89cb","_id":"github-current-user@2.1.0","_shasum":"c74a41a358e4a23ce5a8c26b3dbffd19f3e5d1e5","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"c74a41a358e4a23ce5a8c26b3dbffd19f3e5d1e5","size":1523,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.1.0.tgz"},"directories":{},"publish_time":1430105351685,"_cnpm_publish_time":1430105351685,"_hasShrinkwrap":false},"2.0.0":{"name":"github-current-user","description":"Verify the current GitHub user via their private keys","version":"2.0.0","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"dependencies":{"ghsign":"^1.0.6","git-config-path":"^0.1.0","git-user-email":"^0.2.1","parse-git-config":"^0.3.0","request":"^2.55.0"},"homepage":"https://github.com/beaugunderson/github-current-user","keywords":["github"],"license":"MIT","main":"github-current-user.js","repository":{"type":"git","url":"git+https://github.com/beaugunderson/github-current-user.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"a634c3502f071a8b75a2debca5d6efe9d9d6bcf5","_id":"github-current-user@2.0.0","_shasum":"57c9f315e9096adeb8ad5fc619c7a1ad807e5da5","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"57c9f315e9096adeb8ad5fc619c7a1ad807e5da5","size":1428,"noattachment":false,"key":"/github-current-user/-/github-current-user-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-2.0.0.tgz"},"directories":{},"publish_time":1430103127606,"_cnpm_publish_time":1430103127606,"_hasShrinkwrap":false},"1.0.0":{"name":"github-current-user","version":"1.0.0","description":"Verify the current GitHub user via their private keys","main":"github-current-user.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["github"],"author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com"},"license":"MIT","dependencies":{"ghsign":"^1.0.6","git-user-email":"^0.2.1","request":"^2.55.0"},"gitHead":"c1bc0f77e3622bf3159cac3b8be994eb865e2bc7","_id":"github-current-user@1.0.0","_shasum":"efa1701977eaf89946bd2461aac06106e8507a14","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.12.2","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"maintainers":[{"name":"beaugunderson","email":""},{"name":"feross","email":""},{"name":"mafintosh","email":""},{"name":"maxogden","email":""}],"dist":{"shasum":"efa1701977eaf89946bd2461aac06106e8507a14","size":1150,"noattachment":false,"key":"/github-current-user/-/github-current-user-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-current-user/download/github-current-user-1.0.0.tgz"},"directories":{},"publish_time":1430080790155,"_cnpm_publish_time":1430080790155,"_hasShrinkwrap":false}},"readme":"## github-current-user\n\nGet the current GitHub user and verify that they have access to a private key\nthat's been authorized to that account.\n\nUses the username in `user.username` or `github.user` or the email address in\n`user.email` of the user's `.gitconfig` and the private keys in in the user's\n`ssh-agent` with fallback to `~/.ssh/id_rsa` or `~/.ssh/id_dsa`.\n\nIf the username is known, you can use `verifyUser` and pass it as the first\nargument which bypasses `.gitconfig` lookup work.\n\n### examples\n\n```js\nvar user = require('github-current-user');\n\nuser.verify(function (err, verified, username) {\n  // if verified === true, the user has the correct private key or ssh-agent\n  // for the username in the `username`\n  console.log(verified, username);\n});\n```\n\n```js\nvar user = require('github-current-user');\n\nuser.verifyUser('beaugunderson', function (err, verified, username) {\n  // if verified === true, the user has the correct private key or ssh-agent\n  // for the username in the `username`\n  console.log(verified, username);\n});\n```\n\n## test out on the cli\n\n```\n$ npm i github-current-user -g\n$ github-current-user\nYou are verified as maxogden\n\n$ github-current-user maxogden\nYou are verified as maxogden\n```\n","_attachments":{},"homepage":"https://github.com/beaugunderson/github-current-user","bugs":{"url":"https://github.com/beaugunderson/github-current-user/issues"},"license":"MIT"}