npm-email
TypeScript icon, indicating that this package has built-in type declarations

5.1.0 • Public • Published

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'));
//=> 'sindresorhus@gmail.com'

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/

    Package Sidebar

    Install

    npm i npm-email

    Weekly Downloads

    716

    Version

    5.1.0

    License

    MIT

    Unpacked Size

    4.18 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus