🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

is_email

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is_email

is_email() is a function to validate an email address against relevant RFCs

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

is_email.js

is_email.js is a port of the is_email PHP library to Javascript.

is_email validates email address for you using simple javascript function is_email. Validate an email address according to RFCs 5321, 5322 and others.

Note:- It doesn't not support DNS check for MX records and parsed address components like the PHP is_email does.

How to use ?

  • Include is_email.js in your page.
<script type="text/javascript" src="is_email.js"></script>
  • And start validating emails.
var check = is_email("dominic@isemail.info");
if (check) {
  alert("You have entered correct email address.");
} else {
  alert("Please provide correct email address.");
}

Wanna Donate?

Go to http://isemail.info and click on donate button at the top-right.

Keywords

is_email

FAQs

Package last updated on 11 Sep 2013

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