View Source Exfake (Exfake v2.1.0)

Documentation for Exfake.

Link to this section Summary

Functions

Generates a random company BS goals.

Generates a random company catch phrase.

Generates a random company name.

Generates a random company suffix.

Returns a random currency which represented in few format.

Generates a random domain.

Generates a random email.

Generates first name.

Generates a random HTTP code.

Generates a random IPv4 address.

Generates a random IPv6 address.

Generates a random language code.

Generates last name.

Generates a random MAC address.

Generates random lorem paragraph with specified sentence count and sentence words count which randoms between 2 and 5. Sentence count must be greater than 0. Default sentence count is 3. Default words count between 2 and 5.

Generates first name + last name combination.

Generates phone number which formatted randomly.

Generates random english sentence with specified words count. Words count must be greater than 1. Default words count is 5.

Generates a random URL.

Generates random english word.

Generates a random XSS file.

Generates a random XSS string.

Generates a random USA zip code.

Link to this section Functions

@spec bs() :: String.t()

Generates a random company BS goals.

examples

Examples

iex> Exfake.bs()
"reintermediate granular niches"
iex> Exfake.bs()
"unleash user-centric markets"
@spec catch_phrase() :: String.t()

Generates a random company catch phrase.

examples

Examples

iex> Exfake.catch_phrase()
"Re-engineered maximized productivity"
iex> Exfake.catch_phrase()
"Right-sized hybrid complexity"
@spec company_name() :: String.t()

Generates a random company name.

examples

Examples

iex> Exfake.company_name()
"Klein, Mueller and Windler"
iex> Exfake.company_name()
"Zion Kerluke LLC"
iex> Exfake.company_name()
"Legros-Yundt"
@spec company_suffix() :: String.t()

Generates a random company suffix.

examples

Examples

iex> Exfake.company_suffix()
"Inc"
iex> Exfake.company_suffix()
"LLC"
@spec currency() :: [String.t(), ...]

Returns a random currency which represented in few format.

examples

Examples

iex> Exfake.currency()
["Costa Rica Colon", "CRC", "₡"]
iex> Exfake.currency()
["Japan Yen", "JPY", "¥"]
iex> Exfake.currency()
["Liberia Dollar", "LRD", "$"]
@spec domain() :: String.t()

Generates a random domain.

examples

Examples

iex> Exfake.domain()
"www.laboriosam.me"
iex> Exfake.email()
"www.nihil.biz"
@spec email() :: String.t()

Generates a random email.

examples

Examples

iex> Exfake.email()
"dallas@gmail.com"
iex> Exfake.email()
"miller@hotmail.com"
@spec first_name() :: String.t()

Generates first name.

examples

Examples

iex> Exfake.first_name()
"Jake"
iex> Exfake.first_name()
"Rosemary"
@spec http_code() :: non_neg_integer()

Generates a random HTTP code.

examples

Examples

iex> Exfake.http_code()
308
iex> Exfake.http_code()
201
iex> Exfake.http_code(:info)
102
iex> Exfake.http_code(:server_error)
503
@spec http_code(:client_error | :info | :redirection | :server_error | :success) ::
  non_neg_integer()
@spec ipv4() :: String.t()

Generates a random IPv4 address.

examples

Examples

iex> Exfake.ipv4()
"145.77.91.223"
iex> Exfake.ipv4()
"17.94.49.5"
@spec ipv6() :: String.t()

Generates a random IPv6 address.

examples

Examples

iex> Exfake.ipv6()
"BCB6:C612:24B1:D067:3B27:B8BC:187A:9CCB"
iex> Exfake.ipv6()
"90A1:238:65DD:EC7F:CF3A:1AB0:B2DE:C8A3"
@spec language_code() :: String.t()

Generates a random language code.

examples

Examples

iex> Exfake.language_code()
"gv"
iex> Exfake.language_code()
"ne"
@spec last_name() :: String.t()

Generates last name.

examples

Examples

iex> Exfake.last_name()
"Nitzsche"
iex> Exfake.last_name()
"Adams"
@spec mac() :: String.t()

Generates a random MAC address.

examples

Examples

iex> Exfake.mac()
"15:91:207:109:70:248"
iex> Exfake.mac()
"108:240:198:106:40:61"
Link to this function

paragraphs(n \\ 3, limit \\ 5)

View Source
@spec paragraphs(pos_integer(), pos_integer()) :: String.t()

Generates random lorem paragraph with specified sentence count and sentence words count which randoms between 2 and 5. Sentence count must be greater than 0. Default sentence count is 3. Default words count between 2 and 5.

examples

Examples

iex> Exfake.paragraphs()
"Statement waste mind. Verse sugar answer adjustment behavior. Soup attempt."
iex> Exfake.paragraphs(3, 2)
"Smoke ink. Cry day. Company stop."
iex> Exfake.paragraphs(3, 2)
"Nation wind. Sea stone. Minute comparison."
@spec person() :: String.t()

Generates first name + last name combination.

examples

Examples

iex> Exfake.person()
"Jake Nitzsche"
iex> Exfake.person()
"Luciano Eichmann"
@spec phone_number() :: String.t()

Generates phone number which formatted randomly.

examples

Examples

iex> Exfake.phone_number()
"684-126-0269"
iex> Exfake.phone_number()
"1-319-098-3384 x06095"
@spec sentence(pos_integer()) :: String.t()

Generates random english sentence with specified words count. Words count must be greater than 1. Default words count is 5.

examples

Examples

iex> Exfake.sentence()
"Judge taste page porter harmony."
iex> Exfake.sentece(3)
"Event minute view."
@spec url() :: String.t()

Generates a random URL.

examples

Examples

iex> Exfake.url()
"http://www.roll.me"
iex> Exfake.url()
"https://www.front.com"
@spec word() :: String.t()

Generates random english word.

examples

Examples

iex> Exfake.word()
"burn"
iex> Exfake.word()
"language"
@spec xss_file() :: String.t()

Generates a random XSS file.

examples

Examples

iex> Exfake.xss_file()
"<TABLE><TD BACKGROUND="javascript:alert('XSS')">.txt"
iex> Exfake.xss_file()
"<IMG SRC="javascript:alert('XSS');">.txt"
@spec xss_string() :: String.t()

Generates a random XSS string.

examples

Examples

iex> Exfake.xss_string()
"<BODY BACKGROUND="javascript:alert('XSS')">"
iex> Exfake.xss_string()
"<A HREF="http://0102.0146.0007.00000223/">XSS</A>"
@spec zip_code() :: String.t()

Generates a random USA zip code.

examples

Examples

iex> Exfake.zip_code()
"32107-6766"
iex> Exfake.zip_code()
"9152"