# @webb/validate-email

> Pretty good email validation

Latest version **2020.4.16** (published 2020-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @webb/validate-email
pnpm add @webb/validate-email
yarn add @webb/validate-email
bun add @webb/validate-email
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2020.4.16 |
| Published | 2020-04-17 |
| First published | 2020-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | netop://ウエハ |
| Maintainers | netoperatorwibby |

## Links

- npm: https://www.npmjs.com/package/@webb/validate-email
- Repository: https://github.com/NetOperatorWibby/validate-email
- Issues: https://github.com/NetOperatorWibby/validate-email/issues
- npm.io page: https://npm.io/package/@webb/validate-email

## Dependencies (1)

- [@webb/console](https://npm.io/package/@webb/console.md) ^2020.4.15

## Recent versions

- 2020.4.16 (latest) — 2020-04-17
- 2020.3.29 — 2020-03-29
- 2020.3.9 — 2020-03-10

## README

# @webb/validate-email

> Pretty good email validation



## Install

```sh
$ npm i @webb/validate-email
```



## Usage

```js
import validateEmail from "@webb/validate-email";

// You would obviously have this wrapped in an async function
// This example is extremely pared down

if (!validateEmail("l0l you gez h@x0r3d!")) {
  return "Email validation failed";
}
```

```js
// You can also import the raw regex this module is using...
// But like, why?
import { emailRegex } from "@webb/validate-email";

if (!emailRegex.test("you@example.com")) {
  return "Email validation failed";
}
```



## API

### validateEmail(suppliedEmail)
#### suppliedEmail
Type: `string`

Pass any input into this function and you will find out if it is valid or not.

### emailRegex

You better know what you are doing.

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