{"name":"github-username","version":"6.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"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["github","user","username","email","address","gh","git"],"dependencies":{"@octokit/rest":"^18.0.6"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.14.0","xo":"^0.36.1"},"gitHead":"a1c09b8782b364570986903dec06fbc00b3730d8","bugs":{"url":"https://github.com/sindresorhus/github-username/issues"},"homepage":"https://github.com/sindresorhus/github-username#readme","_id":"github-username@6.0.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-7TTrRjxblSI5l6adk9zd+cV5d6i1OrJSo3Vr9xdGqFLBQo0mz5P9eIfKCDJ7eekVGGFLbce0qbPSnktXV2BjDQ==","shasum":"d543eced7295102996cd8e4e19050ebdcbe60658","tarball":"http://registry-npm.ywwl.com/github-username/download/github-username-6.0.0.tgz","fileCount":5,"unpackedSize":4092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4x7BCRA9TVsSAnZWagAAQ1kP/i9C1rc5Op30a0zwc6ag\nPX3Spuls38DrHKR8hzv57DnbGFUryZdQzMVVw5+q/Tr8UeF3VClSZC2KXT0t\nSQQffY+zE8o6QGKmXifT7jNERwamByi3sOmBTNeEy14efPs0UZxGCS6LnWVp\n5UUc2sDISb9XhzARBI82J4F4O0ZWYWu5CTOTjdOpS4XnYoBJFKk9r72aTtWo\nNp1PhGoC2Sam10EuFcPHLLJkwKuqyYvJ3kbYN4JmRHINa/IP2sN66quFnylx\nNdvqVwk0H2mV/CDpQiqsX8ayjAwh/5h/1kq2cwpYBHYWw4ExvSEC+ESiMlPP\nCiZiIC0OkM+Yrw5jM1Ee66vQs+jXFynHe8gbJU1ToCEbSBjCz0PUuO1Il2to\nSijAGW5F+jm56Is/26P9vktl8lOm9JDB++r1zHG3zgSJ3whKCLgLIIi9bq9r\ndzLdO2LbaYnZCSWWTtku6TBB5KU4e96zJEpKyBnNa0ofzx8741bakjZY+JCe\nAXgL5REfvzbMKvkcGx56v76jD07ayPr7o6tha6maMYtBJp3T8CCgtjsJLnHe\nzoXsnzgNzHiTcQjKbih7ValguwgqprP3FTOWcQF0clLKSnM5ipgQsQWBOfQH\nLnSn2WSfxNzxHqZYa1CFxlwk+FyfL59Ptq2xqwzy57lPut3UsGXKvnW3pbAC\nq3gV\r\n=Yyzp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5ouIVb/hZeQ10L/UcXbFvGgyFRqnFCiz9J/OyGBMCDAiEA01ob4KU3NuRALVs1FeqQO6nJmJDnswmwzTyuJc6ZKJc="}],"size":1994,"noattachment":false,"key":"/github-username/-/github-username-6.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/github-username_6.0.0_1608720065476_0.27063785228243065"},"_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":1608720065615,"_cnpm_publish_time":1608720065615,"dist-tags":{"latest":"9.0.0"}}