MCPcopy
hub / github.com/faker-js/faker / postalAddress

Method postalAddress

src/modules/location/index.ts:393–397  ·  view source on GitHub ↗

* Generates a random localized full postal address, which may include a street address, secondary address, city, state, and zip code. To ensure you get locale-specific address formats, use a localized Faker instance. * * @example * faker.location.postalAddress() * // 'Apt. 980 * // 09

()

Source from the content-addressed store, hash-verified

391 * @since 10.5.0
392 */
393 postalAddress(): string {
394 return this.faker.helpers.fake(
395 this.faker.definitions.location.postal_address
396 );
397 }
398
399 /**
400 * Generates a random localized secondary address. This refers to a specific location at a given address

Callers 1

location.spec.tsFile · 0.80

Calls 1

fakeMethod · 0.80

Tested by

no test coverage detected