# random-email

> Return a random email address.

Latest version **1.0.3** (published 2016-04-25) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-04-25 |
| First published | 2016-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | bubkoo |
| Maintainers | bubkoo |
| Keywords | email, domain, tld, web, random, randomly, randomize, chance, test, dice, mock |

## Links

- npm: https://www.npmjs.com/package/random-email
- Repository: https://github.com/mock-end/random-email
- Homepage: https://github.com/mock-end/random-email#readme
- Issues: https://github.com/mock-end/random-email/issues
- npm.io page: https://npm.io/package/random-email

## Dependencies (3)

- [to-str](https://npm.io/package/to-str.md) ^1.0.0
- [random-lorem](https://npm.io/package/random-lorem.md) ^1.0.4
- [random-domains](https://npm.io/package/random-domains.md) 1.0.3

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2016-04-25
- 1.0.2 — 2016-04-24
- 1.0.1 — 2016-04-18
- 1.0.0 — 2016-04-17
- 0.0.0 — 2016-04-03

## README

# random-email

> Return a random email address.

[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-email/blob/master/LICENSE)

[![build:?](https://img.shields.io/travis/mock-end/random-email/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-email)
[![coverage:?](https://img.shields.io/coveralls/mock-end/random-email/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-email)


## Install

```
$ npm install --save random-email
```

## Usage

> For more use-cases see the [tests](https://github.com/mock-end/random-email/blob/master/test/spec/index.js)

```js
var randomEmail = require('random-email');

// API
// - randomEmail([options]);

// options
// - domain
```

Return a random email with a random domain.

```js
randomEmail();
// => 'kawip@piklojzob.gov'
```

Optionally specify a domain and the email will be random but the domain will not.

```js
randomEmail({ domain: 'example.com' });
// => 'giigjom@example.com'
```

## Related

- [random-tld](https://github.com/mock-end/random-tld) - Return a random tld(Top Level Domain).
- [random-domains](https://github.com/mock-end/random-domains) - Return a random domain.
- [random-protocol](https://github.com/mock-end/random-protocol) - Return a random protocol.
- [random-hashtag](https://github.com/mock-end/random-tld) - Return a random hashtag.
- [random-uri](https://github.com/mock-end/random-uri.git) - Return a random url.
- [random-ipv4](https://github.com/mock-end/random-ipv4) - Return a random ipv4 address.
- [random-ipv6](https://github.com/mock-end/random-ipv6) - Return a random ipv6 address.
- [random-avatar](https://github.com/mock-end/random-avatar) - Return a URL to a random avatar from Gravatar.

## Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please [create an issue](https://github.com/mock-end/random-email/issues/new).

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