# npm-email

> Get the email of an npm user

Latest version **5.1.0** (published 2024-02-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-email
pnpm add npm-email
yarn add npm-email
bun add npm-email
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.1.0 |
| Published | 2024-02-29 |
| First published | 2015-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | npm, email, address, user, username, registry, json, get |

## Links

- npm: https://www.npmjs.com/package/npm-email
- Repository: https://github.com/sindresorhus/npm-email
- Homepage: https://github.com/sindresorhus/npm-email#readme
- Issues: https://github.com/sindresorhus/npm-email/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/npm-email

## Dependencies (1)

- [ky](https://npm.io/package/ky.md) ^1.2.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 5.1.0 (latest) — 2024-02-29
- 5.0.0 — 2024-02-26
- 4.0.1 — 2022-02-18
- 4.0.0 — 2022-02-17
- 3.2.1 — 2020-04-06
- 3.2.0 — 2019-04-01
- 3.1.0 — 2019-03-12
- 3.0.0 — 2017-11-20
- 2.0.0 — 2016-05-01
- 1.1.1 — 2016-01-25
- 1.1.0 — 2015-11-14
- 1.0.0 — 2015-05-07

## README

# npm-email

> Get the email of an npm user

## Install

```sh
npm install npm-email
```

## Usage

```js
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-cli](https://github.com/sindresorhus/npm-email-cli) - CLI for this module
- [npm-keyword](https://github.com/sindresorhus/npm-keyword) - Get a list of npm packages with a certain keyword
- [package-json](https://github.com/sindresorhus/package-json) - Get the package.json of a package from the npm registry
- [npm-user](https://github.com/sindresorhus/npm-user) - Get user info of an npm user

---
_Source: https://npm.io/package/npm-email · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
