Current section
Files
Jump to
Current section
Files
priv/internet.json
{
"en": {
"functions": {
"email": [
"#{user_name}@#{domain_name}"
],
"free_email": [
"#{user_name}@#{free_email_service}"
],
"user_name": [
"#{Faker.Name.first_name |> String.replace(~s( ), ~s()) |> String.downcase}#{:crypto.rand_uniform(1900, 2100)}",
"#{:random.seed(:os.timestamp); [ Faker.Name.first_name, Faker.Name.last_name ] |> Enum.map_join(hd(Enum.shuffle(~w(. _))), &(String.replace(&1, ~s( ), ~s()))) |> String.downcase}"
],
"safe_email": [
"#{user_name}@example.#{:random.seed(:os.timestamp);hd(Enum.shuffle(~w(org com net)))}"
],
"domain_word": [
"#{Faker.Name.last_name |> String.split([\" \", \",\"]) |> Enum.join |> String.downcase}"
],
"domain_name": [
"#{domain_word}.#{domain_suffix}"
],
"url": [
"http://#{domain_name}",
"https://#{domain_name}"
],
"image_url": [
"http://placekitten.com/#{:crypto.rand_uniform(1, 1024)}/#{:crypto.rand_uniform(1, 1024)}",
"http://placehold.it/#{:crypto.rand_uniform(1, 1024)}x#{:crypto.rand_uniform(1, 1024)}",
"http://www.lorempixum.com/#{:crypto.rand_uniform(1, 1024)}/#{:crypto.rand_uniform(1, 1024)}",
"http://dummyimage.com/#{:crypto.rand_uniform(1, 1024)}x#{:crypto.rand_uniform(1, 1024)}"
]
},
"values": {
"domain_suffix": ["com", "biz", "info", "name", "net", "org"],
"free_email_service": ["gmail.com", "yahoo.com", "hotmail.com"]
}
}
}