{"name":"github-username","version":"2.1.0","description":"Get a GitHub username from an email address","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/github-username"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bin":{"github-username":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js","cli.js"],"keywords":["cli-app","cli","bin","app","github","user","username","email","gh","git"],"dependencies":{"gh-got":"^2.2.0","meow":"^3.5.0"},"devDependencies":{"mocha":"*"},"gitHead":"8f3dd1de3b5c703287b52e4c320d7873161b9d67","bugs":{"url":"https://github.com/sindresorhus/github-username/issues"},"homepage":"https://github.com/sindresorhus/github-username","_id":"github-username@2.1.0","_shasum":"200e5a104af42ba08a54096c708d4b6ec2fa256b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"200e5a104af42ba08a54096c708d4b6ec2fa256b","tarball":"http://registry-npm.ywwl.com/github-username/download/github-username-2.1.0.tgz","integrity":"sha512-hb6rS/HdB93v8CNU9fVdG/d8ytaLw56MNWAICvEnS3j5aZWmQQOBWa4ocmeF+N7On66GbXxfh+NQbujSI5Spfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1k/u5pBQZGVh67kxGvlnNuwN0juKZPwzK0GHd1jG8GAiEAvD2vMWRr9CBEIP0QqEL6Ls7tuvCBLsT+pIxEeaHuomY="}],"size":2189,"noattachment":false,"key":"/github-username/-/github-username-2.1.0.tgz"},"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":1447524081797,"_cnpm_publish_time":1447524081797,"dist-tags":{"latest":"9.0.0"}}