{"name":"github-username","version":"4.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":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["github","user","username","email","address","gh","git"],"dependencies":{"gh-got":"^5.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"8481ef885abc9020b01c409f32b84a5a3a99f2ef","bugs":{"url":"https://github.com/sindresorhus/github-username/issues"},"homepage":"https://github.com/sindresorhus/github-username#readme","_id":"github-username@4.0.0","_shasum":"d18d7fba52f6c6a5f59589a9207904c48a12ea2e","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d18d7fba52f6c6a5f59589a9207904c48a12ea2e","tarball":"http://registry-npm.ywwl.com/github-username/download/github-username-4.0.0.tgz","integrity":"sha512-LrOkNAPZzO6e78uWmkDCVnFpehhctcATnDGUqkpHwI5MHFrfC6Tq3worKUHC3BO2rZ8i4qlyaLcELw/yv5wxeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDC94VKTlorne/WODBz44sBFYfaoEKqloTDmqwruSeATAiBTbQaLT9Fny3Bs8rTyPze4AZF2bRN3cRkEHmK+2x7Upg=="}],"size":1850,"noattachment":false,"key":"/github-username/-/github-username-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/github-username-4.0.0.tgz_1491021308348_0.5258591892197728"},"directories":{},"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":1491021310429,"_cnpm_publish_time":1491021310429,"dist-tags":{"latest":"9.0.0"}}