{"name":"github-username","version":"5.0.1","description":"Get a GitHub username from an email address","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/github-username.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["github","user","username","email","address","gh","git"],"dependencies":{"gh-got":"^8.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"2640b0d603e7b61332e5d87e256c9685adb13ba2","bugs":{"url":"https://github.com/sindresorhus/github-username/issues"},"homepage":"https://github.com/sindresorhus/github-username#readme","_id":"github-username@5.0.1","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-HxFIz5tIQDoiob2ienSKLHoCSFFC6F79IcnM5E5KNAxkxMjvpuUSE7K4fU2n51fwo0idT0ZsMFZIUy4SIPXoVA==","shasum":"f4e8c2cd7a3247bd75ae2841f5f69347f5b4c1f0","tarball":"http://registry-npm.ywwl.com/github-username/download/github-username-5.0.1.tgz","fileCount":5,"unpackedSize":4224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9A2PCRA9TVsSAnZWagAAZYsP/i+XN/iCWOG+bX+m/vlt\n1rbIfWfCMGpffveD/Lv2GJRyyjEbgqfsy6FmZnovOaSPysPd2g9Gm5mZ3xPZ\nP8avrkDp/ObN5AvodmmZBghfERDsMu0WEKrfkcAEAHoggGrSac22gzq/OCu+\nmEc0TANb7qsNXB3cL7E+LJg4x6C2AqupIHV9Ydkh0UCFQXweoys/S05zvUM5\nVG6x6SKC5Esu6rKWnub4doyeS6jr3OtjDGH2s/vFuJXFv6dAD49gSIkiBCzd\nSfWqjulmPbQkc0Nmdy7hljiix7L+RJubaklTt6pJ5b8YU1Vu2LoRcLbLwChL\nxcZ1T2dI0Fy02yS+MFLV80Hmhkbo1+Yzl5MtdaTmXm6jLb89g6LnEdvMc275\niwJgl2Uo69+J88aCSc2dNoFAuO/69yA0vkP/InQtTArmGohl8NI/SFrltHfT\nAxG8/ItjQgsagJh0sOSXlKVK2z/Bllhuff/8mXHSMWqbkM+VSFRRKjMq1peQ\nKzgPQ74Sj67+aynB2jgqAq4c1g2Sd3JyjDEZrTtcxfmhdz1cofkEqKXxxO4a\nCZpP6d42tm5iIRV6+tmMK03EgegsamZ3tqKwIfjAouf7yRM1qWAnkP989XGV\nm9SRXYBpT+S20fFv+IWMBqVbvTP60LtbeEAcUDLuTK0r0I88+vgLyrGxtMjP\nDyAK\r\n=Qkkn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDht/QGTZpjCbZwq96URT48PrYSojh5A0oqw5pTXxW8VQIgYCdLo3M75AEPdeUQLJgFSz8Yqt+6CBM0n3kffJKBIHM="}],"size":2029,"noattachment":false,"key":"/github-username/-/github-username-5.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/github-username_5.0.1_1559498127278_0.27469185528661777"},"_hasShrinkwrap":false,"readme":"# github-username\n\n> Get a GitHub username from an email address\n\n## Install\n\n```sh\nnpm install github-username\n```\n\n## Usage\n\n```js\nimport githubUsername from 'github-username';\n\nconsole.log(await githubUsername('sindresorhus@gmail.com'));\n//=> 'sindresorhus'\n```\n\n## API\n\n### githubUsername(email, options?)\n\nGet the GitHub username from an email address if the email can be found in any commits on GitHub.\n\nReturns a `Promise<string?>` with the username.\n\n#### email\n\nType: `string`\n\nThe email address for the user of whom you want the username.\n\n#### options\n\nType: `object`\n\n##### token\n\nType: `string`\n\nGitHub [personal access token](https://github.com/settings/tokens/new).\n\n## Related\n\n- [github-username-cli](https://github.com/sindresorhus/github-username-cli) - CLI for this module\n","publish_time":1559498127389,"_cnpm_publish_time":1559498127389,"dist-tags":{"latest":"9.0.0"}}