Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sefinek/email-validator

Lightweight npm module for email address validation.
https://github.com/sefinek/email-validator

email email-address-validator email-checker email-validator email-verifier email-verify npm-module npm-package validation validator validators

Last synced: 28 days ago
JSON representation

Lightweight npm module for email address validation.

Awesome Lists containing this project

README

        

# ๐Ÿ“จ Email address validator
This lightweight module facilitates precise email address validation, returning a `Boolean` value of `true` or `false`.



npm downloads


Issues


Last commit


Stats

## ๐ŸŸข ยป Node.js
### Installation via npm
```bash
npm install @sefinek/email-validator
```

### Installation via yarn
```bash
yarn add @sefinek/email-validator
```

### Example
```js
const emailValidator = require('@sefinek/email-validator');
const testEmail = '[email protected]';

if (emailValidator.test(testEmail)) {
console.log(`Email ${testEmail} is valid.`);
} else {
console.log(`Email ${testEmail} is NOT valid!`);
}
```

## ๐ŸŒ ยป Browser
### jsdelivr.net
```
https://cdn.jsdelivr.net/npm/@sefinek/email-validator@1/dist/browser.min.js
```

### Example
```html


email-validator

email-validator



const email = '[email protected]';

if (emailValidator.test(email)) {
console.log(`โœ”๏ธ Email ${email} is valid.`);
} else {
console.log(`โŽ Email ${email} is NOT valid!`);
}

```

### Demo
> https://sefinek.net/npm/email-validator/demo

## โญ ยป Thank you
If you find this module helpful, please consider giving the [repository a star](https://github.com/sefinek24/email-validator).
For any questions or issues, please create a new [Issue](https://github.com/sefinek24/email-validator/issues/new).

## ๐Ÿ“‘ ยป MIT License
Copyright 2023-2024 ยฉ by [Sefinek](https://sefine.net). All Rights Reserved.