Skip to content

Elm module for parsing and validating email addresses

License

Notifications You must be signed in to change notification settings

xeticode/email-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Parser

A library for validating and parsing email addresses respecting RFC 5321 and RFC 5322. It uses elm/parser under the covers.

Email Validation

import Email exposing (isValid)


isValid "hello@world.com" == True

Email Parsing

import Email exposing (parse)


parse "hello@world.com" == Ok { local = "hello", domain = "world.com" } 

toString

import Email exposing (toString)


toString { local = "hello", domain = "world.com" }  == "hello@world.com"

About

Elm module for parsing and validating email addresses

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elm 100.0%