-
Notifications
You must be signed in to change notification settings - Fork 0
Address
Street address faker.address.streetAddress()
faker.address.streetAddress("###"); //returns "95487 Mazie Cove"
Secondary address faker.address.secondaryAddress()*
faker.address.secondaryAddress(); //returns "Apt. 819"
City name faker.address.city([format])
0 = '{{address.cityPrefix}} {{name.firstName}} {{address.citySuffix}} 1 = '{{address.cityPrefix}} {{name.firstName}} 2 = '{{name.firstName}} {{address.citySuffix}} 3 = '{{name.lastName}} {{address.citySuffix}}
faker.address.city(); //returns "Lake Wiley berg"
faker.address.city(3) //returns "Huels chester"
State faker.address.state()
faker.address.state(); //returns "Wyoming"
State Abbreviation faker.address.stateAbbr()
faker.address.stateAbbr(); //returns "HI"
County faker.address.county()
faker.address.county(); //returns "Avon"
Country faker.address.country()
faker.address.country(); //returns "Svalbard & Jan Mayen Islands"
Country code (ISO2) faker.address.countryCode()
faker.address.countryCode(); //returns "DO"
Postal code faker.address.zipCode([format]) If zip format is not specified, uses the zip format defined for the locale.
faker.address.zipCode(); //returns "90062"
faker.address.zipCode("#####-###"); //returns "90062-612"
Latitude faker.address.latitude()
faker.address.latitude(); //returns "-4.6120"
Longitude faker.address.longitude()
faker.address.longitude(); //returns "27.9893"
City prefix faker.address.cityPrefix()
faker.address.cityPrefix(); //returns "Lake"
City suffix faker.address.citySuffix()
faker.address.citySuffix(); //returns "chester"
Street name faker.address.streetName()
faker.address.streetName(); //returns "Von Club"
Street suffix faker.address.streetSuffix()
faker.address.streetSuffix(); //returns "Mountains"
Street prefix faker.address.streetPrefix()
faker.address.streetPrefix(); //returns "b"