Skip to content

Email address normalization to remove subdomains, plus addressing, and comments.

License

Notifications You must be signed in to change notification settings

coryasilva/canonical-email

Repository files navigation

canonical-email

Email address normalization to remove subdomains, plus addressing, and comments.

Install

npm install canonical-email

Usage

import { canonicalize } from 'canonical-email';

const email = 'some.one+tag@gmail.com';
const emailCanonical = canonicalize(email);

console.log(emailCanonical);
//=> someone@gmail.com

About

Email address normalization to remove subdomains, plus addressing, and comments.

Resources

License

Stars

Watchers

Forks

Packages

No packages published