phasmid - v2.0.1
    Preparing search index...

    Function isSameEmail

    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
    • Returns true if two addresses are both valid and normalize to the same canonical address, i.e. they deliver to the same mailbox under the configured rules. Invalid input never matches anything, itself included.

      Parameters

      Returns boolean