Skip to content

johno/is_email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is_email Build Status

Loosely check whether a given string is an email.

Installation

Add is_email to your list of dependencies in mix.exs

def deps do
  [{:is_email, "~> 0.0.1"}]
end

Ensure is_email is started before your application

def application do
  [applications: [:is_email]]
end

Usage

IsEmail.validate("johnotander@gmail.com") # => true
IsEmail.validate("john@localhost") # => true
IsEmail.validate("invalid_email@") # => false

Development

mix test

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).

About

Elixir package to loosely check whether a given string is an email

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages