ismail
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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.

Package Sidebar

Install

npm i ismail

Weekly Downloads

7

Version

1.2.0

License

MIT

Unpacked Size

5.35 kB

Total Files

5

Last publish

Collaborators

  • ssdwho