Faker Elixir (octopus) v0.2.0 FakerElixir.Internet

Generate fake data for the domain Internet

Summary

Functions

Return an email

Return an email with the name given

Return an email with a popular domain for the name given

Return an url

Return an url with https://

Return an user name

Return an user name for the name given

Functions

email()

Return an email

Examples

iex> FakerElixir.Internet.email
"demarcus@ezra.io"

You can set :popular to generate an email with a popular domain

FakerElixir.Internet.email(:popular)
"candelario@gmail.com"
email(name)

Return an email with the name given

Examples

iex> FakerElixir.Internet.email("Peter Moleski")
"peter.moleski@ethel.net"
email(atom, name)

Return an email with a popular domain for the name given

Examples

iex> FakerElixir.Internet.email(:popular, "Peter Sobieska")
"peter.sobieska@hotmail.com"
url()

Return an url

Examples

iex> FakerElixir.Internet.url
"http://www.alejandra-connelly.com/"
url(atom)

Return an url with https://

Examples

iex> FakerElixir.Internet.url(:safe)
"https://www.stefan-little.org/"
user_name()

Return an user name

Examples

iex> FakerElixir.Internet.user_name
"chadrick"
user_name(name)

Return an user name for the name given

Examples

iex> FakerElixir.Internet.user_name("Jeremie GES")
"jeremie.ges"