Skip to content
/ isMail Public

validity checks of the most commonly used services

Notifications You must be signed in to change notification settings

ssdwho/isMail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isMail Valid?

This package basically checks whether an email address is valid. The main aim is to check whether they are suitable for gmail, outlook and yandex e-mail address standards.

Installation

npm i -S ismail

Import

const ismail = require("ismail")

or

import * as ismail from "ismail"

Request

ismail("thismail@isvalid.com")

Output

{
  "valid": true,
  "simplify": "thismail@isvalid.com"
}

Prevent multiple using

This can be useful if you are registering with email addresses or if you keep a record. Some services supported 'mailname+tag@service.dom' but actually equal to mailname@service.dom

Gmail, king of the common addresses.

w.i.l.l.i.a.m+hello+my+dear@googlemail.com => william@gmail.com

If we try this;

ismail("w.i.l.l.i.a.m+hello+my+dear@googlemail.com")

Output

{
  "valid": true,
  "simplify": "william@gmail.com"
}

These are current rules. Different rules may be applied in the past and a currently available address may not comply with these rules. I'm not sure.