aboutsummaryrefslogtreecommitdiff
path: root/MinFaker.js
diff options
context:
space:
mode:
Diffstat (limited to 'MinFaker.js')
-rw-r--r--MinFaker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/MinFaker.js b/MinFaker.js
index 14f6474a..0202e70d 100644
--- a/MinFaker.js
+++ b/MinFaker.js
@@ -1,6 +1,6 @@
!function(){var a={version:"0.5.5",Name:{}};a.Name.firstName=function(){return a.random.first_name()};a.Name.lastName=function(){return a.random.last_name()};a.Name.findName=function(){switch(a.random.number(8)){case 0:return a.random.name_prefix()+" "+this.firstName()+" "+this.lastName();case 1:return this.firstName()+" "+this.lastName()+" "+a.random.name_suffix()}return this.firstName()+" "+this.lastName()};a.Address={};a.Address.zipCode=function(){return e.replaceSymbolWithNumber(a.random.array_element(["#####",
-"#####-####"]))};a.Address.zipCodeFormat=function(a){return e.replaceSymbolWithNumber(["#####","#####-####"][a])};a.Address.city=function(){switch(a.random.number(3)){case 0:return a.random.city_prefix()+" "+a.random.first_name()+a.random.city_suffix();case 1:return a.random.city_prefix()+" "+a.random.first_name();case 2:return a.random.first_name()+a.random.city_suffix();case 3:return a.random.last_name()+a.random.city_suffix()}};a.Address.streetName=function(){switch(a.random.number(1)){case 0:return a.random.last_name()+
-" "+a.random.street_suffix();case 1:return a.random.first_name()+" "+a.random.street_suffix()}};a.Address.streetAddress=function(c){void 0===c&&(c=!1);var d="";switch(a.random.number(2)){case 0:d=e.replaceSymbolWithNumber("#####")+" "+this.streetName();break;case 1:d=e.replaceSymbolWithNumber("####")+" "+this.streetName();break;case 2:d=e.replaceSymbolWithNumber("###")+" "+this.streetName()}return c?d+" "+this.secondaryAddress():d};a.Address.secondaryAddress=function(){return e.replaceSymbolWithNumber(a.random.array_element(["Apt. ###",
+"#####-####"]))};a.Address.zipCodeFormat=function(a){return e.replaceSymbolWithNumber(["#####","#####-####"][a])};a.Address.city=function(){switch(a.random.number(4)){case 0:return a.random.city_prefix()+" "+a.random.first_name()+a.random.city_suffix();case 1:return a.random.city_prefix()+" "+a.random.first_name();case 2:return a.random.first_name()+a.random.city_suffix();case 3:return a.random.last_name()+a.random.city_suffix()}};a.Address.streetName=function(){switch(a.random.number(2)){case 0:return a.random.last_name()+
+" "+a.random.street_suffix();case 1:return a.random.first_name()+" "+a.random.street_suffix()}};a.Address.streetAddress=function(c){void 0===c&&(c=!1);var d="";switch(a.random.number(3)){case 0:d=e.replaceSymbolWithNumber("#####")+" "+this.streetName();break;case 1:d=e.replaceSymbolWithNumber("####")+" "+this.streetName();break;case 2:d=e.replaceSymbolWithNumber("###")+" "+this.streetName()}return c?d+" "+this.secondaryAddress():d};a.Address.secondaryAddress=function(){return e.replaceSymbolWithNumber(a.random.array_element(["Apt. ###",
"Suite ###"]))};a.Address.brState=function(c){return c?a.random.br_state_abbr():a.random.br_state()};a.Address.ukCounty=function(){return a.random.uk_county()};a.Address.ukCountry=function(){return a.random.uk_country()};a.Address.usState=function(c){return c?a.random.us_state_abbr():a.random.us_state()};a.PhoneNumber={};a.PhoneNumber.phoneNumber=function(){return e.replaceSymbolWithNumber(a.random.phone_formats())};a.PhoneNumber.phoneNumberFormat=function(a){return e.replaceSymbolWithNumber(b.phone_formats()[a])};
a.Internet={};a.Internet.email=function(){return a.Helpers.slugify(this.userName())+"@"+a.Helpers.slugify(this.domainName())};a.Internet.userName=function(){var c;switch(a.random.number(2)){case 0:c=a.random.first_name();break;case 1:c=a.random.first_name()+a.random.array_element([".","_"])+a.random.last_name()}return c};a.Internet.domainName=function(){return this.domainWord()+"."+a.random.domain_suffix()};a.Internet.domainWord=function(){return a.random.first_name().toLowerCase()};a.Internet.ip=
function(){for(var a=[],d=0;4>d;d++)a[d]=(254*Math.random()+1).toFixed(0);return a.join(".")};a.Company={};a.Company.suffixes=function(){return["Inc","and Sons","LLC","Group","and Daughters"]};a.Company.companyName=function(c){switch(c?c:a.random.number(3)){case 0:return a.Name.lastName()+" "+this.companySuffix();case 1:return a.Name.lastName()+"-"+a.Name.lastName();case 2:return a.Name.lastName()+", "+a.Name.lastName()+" and "+a.Name.lastName()}};a.Company.companySuffix=function(){return a.random.array_element(this.suffixes())};