{"name":"github-username","version":"5.0.0","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":"0fbe5a716c91325b4aa620057a4a67d890f9ebed","bugs":{"url":"https://github.com/sindresorhus/github-username/issues"},"homepage":"https://github.com/sindresorhus/github-username#readme","_id":"github-username@5.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-eZFKkn9wUUg0YB3dglmQXN4x89vPEOf41XOfgNCV+yGPdai3qMBDMcHlk0yok93/5Kqa9gUH6xgC+h0Y4A6n+w==","shasum":"1fe157de008a19572281ff6bc72959a13363234c","tarball":"http://registry-npm.ywwl.com/github-username/download/github-username-5.0.0.tgz","fileCount":5,"unpackedSize":4223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcs+1tCRA9TVsSAnZWagAA94kP/jx6rU3oVEx+nwjr77Ox\n0wz7/pMR+oagXHzE2/61LBfJdcHm+2p9Bm3K8CTjqcOHZF/xrzMS/po/FZHP\nfTNJ7T5pHgw5Amdrya8KhEdIa9XmUfcfKf7XqrsgIGRNpArOssWs8HAX+Smt\nC5u/0R938B9j/6ucne0TF2AoU98jWuPrdkGPUHyNvTtCZkXDi43jsQHAS5H1\nNKGExUo1QiFwBFTaU9UQ/VCR25kovrkLc4cZH0xfw+gm+xNYnsaunJxinjfb\naKTbnxt+QB2be6WKq33xBgtIyd9962fcXp7Qlltrjh8mEDHc4cQ1xzJH7zNw\nUv8m2DVH8FnCTGGh6n8MisrBUmy2BDD9SCHf5/4+96E8aCxgkjLIb4V0BVhP\n/fhDHU7SLp6C07zIhhEJ2iYDfO0OAcvkiwbxp3pwM+aADH/2jd31dr4snlLv\nBDziQ6IGCRIsQK4U/jZVfUisoNBuv61tl8O5c8p3yD3bFhV1l4DQNUmC5Dcr\nP1iGkxqYaX3wB/nIJV5thY0zfFLEWXiS7L+5bwGDgmcw8j3/neP3P4WXQTb2\nXgg0ICrqmAqci+BvHmjuQkODkWGflwdpbrsqvvuwZdioWjom/95B7r2dn+W5\nfYf35DNu4Z94H5MbAr6qOImMBDHJPIujpgOuE2hmC7Z9Zi2JM8dWIQxdqOm8\nM14b\r\n=RhRH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARQgSkWmRRwx2iV7PdOUCL7IzFe9ift+xF7TZu8n12ZAiAD0dnvWoiWME7UlzybqGLddHFW+FChPGEmdOZj35M23g=="}],"size":2025,"noattachment":false,"key":"/github-username/-/github-username-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/github-username_5.0.0_1555295596698_0.8667498303319634"},"_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":1555295596812,"_cnpm_publish_time":1555295596812,"dist-tags":{"latest":"9.0.0"}}