Socket
Book a DemoInstallSign in
Socket

easy-email-validator

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-email-validator

A lightweight and reliable email validator that focuses on validating the format (syntax) of email addresses, ensuring compliance with standard email patterns. Does not verify email deliverability or functionality.

1.0.1
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

Easy Email Validator

A simple, lightweight, and reliable npm module to validate email addresses.
easy-email-validator checks if a given string is a valid email based on its format. It's easy to use, with no unnecessary complexity or dependencies.

Features

  • 🟢 Simple to use: Just one function to validate email strings.
  • Lightweight: Minimal size, no unnecessary dependencies.
  • Reliable: Strictly follows email format validation standards.
  • 📦 Perfect for projects needing quick email validation.

Installation

Install via npm or yarn:

npm install easy-email-validator

Usage

Import the easy-email-validator module and use the validate function to check email validity.

JavaScript

// Import the module
const { validate } = require('easy-email-validator');

// Valid email example
const validEmail = "example@domain.com";
console.log(validate(validEmail)); // Output: true

// Invalid email example
const invalidEmail = "example@domain";
console.log(validate(invalidEmail)); // Output: false

Why Use easy-email-validator?

Focused: Specifically designed to validate email address format.

Performance: Processes quickly with minimal overhead.

Simplicity: No additional configurations or complex setup.

Lightweight: Adds minimal footprint to your project.

Limitations

The module does not verify deliverability or check if the email exists.

It focuses solely on email format validation.

License

This project is licensed under the MIT License.

Contributions

Contributions, issues, and feature requests are welcome! Feel free to submit a PR or open an issue on GitHub.

Happy Validating! 🚀

Keywords

email

FAQs

Package last updated on 27 Nov 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.