npm-email
v5.1.0
Published
Get the email of an npm user
Downloads
1,454
Maintainers
Readme
npm-email
Get the email of an npm user
Install
npm install npm-email
Usage
import npmEmail from 'npm-email';
console.log(await npmEmail('sindresorhus'));
//=> '[email protected]'
API
npmEmail(username)
Returns a promise for the user's email address, or undefined
if the user does not exist or the email could not be found.
username
Type: string
The npm username to look up.
Related
- npm-email-cli - CLI for this module
- npm-keyword - Get a list of npm packages with a certain keyword
- package-json - Get the package.json of a package from the npm registry
- npm-user - Get user info of an npm user