{"name":"github-username","version":"7.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"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["github","user","username","email","address","gh","git"],"dependencies":{"@octokit/rest":"^18.12.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.18.0","xo":"^0.45.0"},"gitHead":"de7b53814f8f5919b97940e90462eb77c3419c3d","bugs":{"url":"https://github.com/sindresorhus/github-username/issues"},"homepage":"https://github.com/sindresorhus/github-username#readme","_id":"github-username@7.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-mzCjmmR1LcNf0/qvkJRO63di2lUUuEoRuCqzflq8wrpAajOo7zLSXOTTuj2qr1DhFY2pruw5JLw/CokZU/3ilg==","shasum":"f77159eb77404303d6a041b5090b215df191ce48","tarball":"http://registry-npm.ywwl.com/github-username/download/github-username-7.0.0.tgz","fileCount":5,"unpackedSize":4194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2sV0CRA9TVsSAnZWagAAjzQP/1O6oh+tU7D+FCcb6m3s\nkE4VWHmX6K2rCy5b6Q/kStSQgp77Zkwt0nZTV7hOxJU6N7Psp7qZG1rlPCje\nf4Xit44MHdrye6GthpmcnE5EeY76NWYAeISxn8VDPlYBzWFY1NlCNfYGl5XV\nQD/1uCPrMGh7TDpFleknjtohK9yPhhybEuMNQEyUFz5egp0JOlo4k45TmIN7\nAOCLEGXheGCM6nBDAMLAOs1ZDzxYO6y6vK4H68NgLaw/INoFpkL2h8Gx5Tvz\nK1EPAd/z3QtJJrwOO9ezxeIz+gUqro6Pr1fphVzYRaK3i3vixnfSRC3F6TQ0\npsNTIWMrLxLgs0Ls/LjhTeqSCrGYx1y/maUJ9QhfhmH3SC2TUxEOCxNf1MKe\n7PEkw3DS9PW+zxL8cuUOSmfdfJ6hlIKizQH1chiqofqerw6Vgax3Oc0UOVSB\navsP24BI4ypFw5Tv/KIlOHJfe/6L9/U1wQj7tjUPyhYxLzDvXF7ZDPrcCLyX\nCN4VnOqvjc/rwNuSC60Z+mxg1Sdez371awn47ZrzhPf7qlVYEc0BzjN3W5u7\nmmQdbNalFHb5RyUraqxbVRGafjomxZY8pVurlRN/PLFPiaveSAAYyrfbOb2P\n2JTstu9HH1knTVTqLMy15F2D8pvzQ+xrfIXsT1cbMjEtwneiH+ibI1BU9RyY\nteKD\r\n=Csjp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBvVhDDuVXkI7Zu17wvR2AqZCGa3ByPI7sGOpH0zZv5mAiEAmEDqopvss77fX/AcRnlhCS471/DH/Psfwce+1EedyEk="}],"size":2020,"noattachment":false,"key":"/github-username/-/github-username-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/github-username_7.0.0_1634223817765_0.3354416264243727"},"_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":1634223817900,"_cnpm_publish_time":1634223817900,"dist-tags":{"latest":"9.0.0"}}