Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sefinek/email-validator
- Owner: sefinek
- License: mit
- Created: 2023-12-24T04:28:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T19:16:23.000Z (2 months ago)
- Last Synced: 2024-12-06T10:54:33.974Z (29 days ago)
- Topics: email, email-address-validator, email-checker, email-validator, email-verifier, email-verify, npm-module, npm-package, validation, validator, validators
- Language: JavaScript
- Homepage: https://sefinek.net/npm/email-validator/demo
- Size: 786 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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`.## ๐ข ยป 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.