Skip to content

Function: normalizeEmail() ​

normalizeEmail(email): string

Defined in: index.ts:141

Normalizes an email address.

  • Converts to lowercase
  • Removes subaddressing (everything after + in the local part)

Parameters ​

email ​

string

The email to normalize

Returns ​

string

The normalized email

Example ​

typescript
normalizeEmail('User+tag@Example.COM'); // 'user@example.com'