/npm-email

Get the email of an npm user

Primary LanguageJavaScriptMIT LicenseMIT

npm-email Build Status

Get the email of an npm user

Install

$ npm install --save npm-email

Usage

const npmEmail = require('npm-email');

npmEmail('sindresorhus').then(email => {
	console.log(email);
	//=> 'sindresorhus@gmail.com'
});

API

npmEmail(username)

Returns a promise for the user's email address.

username

Type: string

npm username to look up.

Related

License

MIT © Sindre Sorhus