Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 1001 Bytes

readme.md

File metadata and controls

48 lines (27 loc) · 1001 Bytes

npm-email Build Status

Get the email of an npm user

Install

$ npm install npm-email

Usage

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

(async () => {
	console.log(await npmEmail('sindresorhus'));
	//=> '[email protected]'
})();

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