📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@sefinek/email-validator

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sefinek/email-validator

Lightweight npm module for email address validation.

1.0.3
latest
Source
npm
Version published
Weekly downloads
180
146.58%
Maintainers
0
Weekly downloads
 
Created
Source

📨 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

npm install @sefinek/email-validator

Installation via yarn

yarn add @sefinek/email-validator

Example

const emailValidator = require('@sefinek/email-validator');
const testEmail = 'contact@sefinek.net';

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>email-validator</title>
</head>
<body>
    <h1>email-validator</h1>

    <script src="https://cdn.jsdelivr.net/npm/@sefinek/email-validator@1/dist/browser.min.js"></script>
    <script>
        const email = 'contact@sefinek.net';
        
        if (emailValidator.test(email)) {
            console.log(`✔️ Email ${email} is valid.`);
        } else {
            console.log(`❎ Email ${email} is NOT valid!`);
        }
    </script>
</body>
</html>

Demo

https://sefinek.net/npm/email-validator/demo

⭐ » Thank you

If you find this module helpful, please consider giving the repository a star. For any questions or issues, please create a new Issue.

📑 » MIT License

Copyright 2023-2024 © by Sefinek. All Rights Reserved.

Keywords

email

FAQs

Package last updated on 02 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts