is-it-email
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

is-it-email

Strict RFC 5322 Email validator

Install:

npm i is-it-email

Usage example:

import { validate } from 'is-it-email';

const isEmail = validate('anyRFC_5322@valid.email.com'); //true

//in case you need remove comment from string you can use
import { removeComment } from 'is-it-email';

const emailWithComment='(comment)myperfect(comment)@(comment)email.com(comment)';

const isEmail = validate(emailWithComment); // true, according to RFC-5322

const email = removeComment(emailWithComment) // myperfect@email.com

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i is-it-email

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

8.39 kB

Total Files

7

Last publish

Collaborators

  • ashlom