{"name":"github-username","version":"0.1.1","description":"Get a GitHub username from an email address","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/github-username"},"bin":{"github-username":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli","bin","app","github","user","username","email","gh","git"],"dependencies":{"request":"^2.34.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/github-username/issues"},"homepage":"https://github.com/sindresorhus/github-username","_id":"github-username@0.1.1","dist":{"shasum":"cb9f026d5b8c50c79be096233d2a8b512bb057d9","tarball":"http://registry-npm.ywwl.com/github-username/download/github-username-0.1.1.tgz","integrity":"sha512-A7LkR+h82mOceM8ZwkL91/jAhvUbmSYSYlWm834M/HOVLwIgF8H3HB1yUo6OZW6b0Fx1DbGNmFQlpH6AB84y0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH1p9eipHVE20d+tIBdBlVY9nLiLTR1ef/EnmH9CFyoAIhALA1wRq3wZmPZw1m3+d2EnWpl/xXDw9hLntRqygCNQKq"}],"size":1744,"noattachment":false,"key":"/github-username/-/github-username-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"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":1395820869465,"_cnpm_publish_time":1395820869465,"dist-tags":{"latest":"9.0.0"}}