phasmid - v0.0.1
    Preparing search index...

    Function getEmailProvider

    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
    • 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).

      Parameters

      Returns string | null