normalizeEmail.d.ts 336 B

12345678910111213141516
  1. /**
  2. * 1. Lower-cases whole email.
  3. * 2. Removes dots ".".
  4. * 3. Remotes name part after "+".
  5. * 4. Throws if cannot parse the email.
  6. *
  7. * For example, this email
  8. *
  9. * Michal.Loler+twitter@Gmail.com
  10. *
  11. * will be normalized to
  12. *
  13. * michalloler@gmail.com
  14. *
  15. */
  16. export declare const normalizeEmail: (email: string) => string;