{"name":"github-username","version":"8.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":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["github","user","username","email","address","gh","git"],"dependencies":{"@octokit/rest":"^19.0.13"},"devDependencies":{"ava":"^5.3.1","tsd":"^0.28.1","xo":"^0.55.0"},"types":"./index.d.ts","gitHead":"c716cf8e920430dc319c44ab7586ab2e72b91467","bugs":{"url":"https://github.com/sindresorhus/github-username/issues"},"homepage":"https://github.com/sindresorhus/github-username#readme","_id":"github-username@8.0.0","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-zq6QMHQKeGfhvdLMyT/nskL8ClE3Y9DFDRv3CgpBAIR1lGiL9GFZcgpmF0nMzegfMMLG3TmsEgHoFf8DcD25Lw==","shasum":"aec3ef7a174f8c730e5c9ac3db148c4bd914ff79","tarball":"http://registry-npm.ywwl.com/github-username/download/github-username-8.0.0.tgz","fileCount":5,"unpackedSize":4208,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDW4VLcEPjy1OskgDTbS/S4mPU1GUgEZd1u50DlwGiCaAiBGsraqx0YWDNoMOIN6aBGpgI5LpBYUJt9w2tXPNyQnhA=="}],"size":2020,"noattachment":false,"key":"/github-username/-/github-username-8.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_8.0.0_1691229903197_0.010661216428977438"},"_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":1691229903375,"_cnpm_publish_time":1691229903375,"dist-tags":{"latest":"9.0.0"}}