Skip to content
/ addy Public

A full-featured library for parsing, validating, and rendering email addresses

License

Notifications You must be signed in to change notification settings

pjones/addy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9b62466 · Oct 29, 2020

History

16 Commits
Oct 29, 2020
May 7, 2020
Oct 29, 2020
May 8, 2020
May 8, 2020
Oct 29, 2020
Oct 29, 2020
Oct 29, 2020
Apr 30, 2020
Oct 29, 2020
Apr 30, 2020
Oct 29, 2020
Jun 8, 2020
Apr 30, 2020
May 8, 2020

Repository files navigation

Addy: a modern library for working with email addresses

CI GitHub tag (latest by date) Hackage GitHub

A full-featured library for parsing, validating, and rendering email addresses.

Decoding

Addy.decode "example@example.com"
-- Right (EmailAddr "example@example.com")

Addy.decode "我買@屋企.香港"
-- Right (EmailAddr "\25105\36023@\23627\20225.\39321\28207")

Addy.decode "Mary Smith <mary@example.net> (hi there!)"
-- Right (EmailAddr "Mary Smith <mary@example.net> (hi there!)")

Addy.decode "example@[127.0.0.1]"
-- Right (EmailAddr "example@[127.0.0.1]")

Encoding

Addy.encode address
-- "example@example.com"

Addy.decode "Mary Smith <mary@example.net> (hi there!)"
  & second Addy.encodeFull
-- Right "Mary Smith <mary@example.net> (hi there!)"

About

A full-featured library for parsing, validating, and rendering email addresses

Resources

License

Stars

Watchers

Forks

Packages

No packages published