npm-current-user
v0.1.2
Published
Get current npm user info
Downloads
7
Maintainers
Readme
npm-current-user
Get current npm user info
Install
$ npm install npm-current-user
Usage
const npmCurrentUser = require('npm-current-user');
npmCurrentUser().then(info=> {
console.log(info);
});
/* Results:
{
name: 'banminkyoz',
avatar: 'https://gravatar.com/avatar/64b58245e1cfd5fabd85297a1d5e3ab8?size=496',
email: '[email protected]',
github: 'banminkyoz',
twitter: null
}
*/
Result will be null
if you aren't logging to npm
Cli
$ npm-current-user
name: banminkyoz,
avatar: https://gravatar.com/avatar/64b58245e1cfd5fabd85297a1d5e3ab8?size=496,
email: [email protected],
github: banminkyoz,
twitter: null
Related
- npm-whoami - Finds the npm username of the logged in npm user.
- npm-user - Get user info of an npm user by username
License
MIT © Kyoz