Phasmid: provider-aware email normalization and canonicalization.
import { normalizeEmail, isSameEmail } from "Phasmid";normalizeEmail("John.Doe+newsletter@googlemail.com"); // "johndoe@gmail.com"isSameEmail("a.b@gmail.com", "ab@gmail.com"); // true Copy
import { normalizeEmail, isSameEmail } from "Phasmid";normalizeEmail("John.Doe+newsletter@googlemail.com"); // "johndoe@gmail.com"isSameEmail("a.b@gmail.com", "ab@gmail.com"); // true
Return the id of the provider that handles the given address's domain, or null if no provider matches (or the input is not a valid address).
null
Phasmid: provider-aware email normalization and canonicalization.
Example