- **normalizeEmail(email
[, options
])
** - canonicalize an email address.
`options` is an object which defaults to
`{ lowercase: true, remove_dots: true, remove_extension: true }`. With
`lowercase` set to
`true`, the local part of the email address is lowercased for all domains; the hostname is always lowercased and the local part of the email address is always lowercased for hosts that are known to be case-insensitive (currently only GMail). Normalization follows special rules for known providers: currently, GMail addresses have dots removed in the local part and are stripped of
extensions (e.g.
`some.one+extension@gmail.com` becomes
`[email protected]`) and all
`@googlemail.com` addresses are normalized to
`@gmail.com`.
0 commit comments