Home Reference Source

Function

Static Public Summary
public

async getAddress(locale: {countryCode: string, stateCode: string}): Address

Returns a random fake address.

public

async getCreditcard(creditcardBrand: {creditcardBrand: string}): Creditcard

Returns a random fake credit card.

public

async getPhonenumbers(locale: {countryCode: string, stateCode: string}): Phonenumber

Returns a random fake phonenumber.

public

async getProfile(locale: {countryCode: string, stateCode: string}): Profile

Returns a random fake profile.

public

async getZipcodes(locale: {countryCode: string, stateCode: string}): Zipcode

Returns a random fake zipcode.

Static Public

public async getAddress(locale: {countryCode: string, stateCode: string}): Address source

import {getAddress} from 'fakexy/fakexy.js/main.js'

Returns a random fake address.

Params:

NameTypeAttributeDescription
locale {countryCode: string, stateCode: string}
  • optional

If specified, return addresses in the specified country and state

Return:

Address

public async getCreditcard(creditcardBrand: {creditcardBrand: string}): Creditcard source

import {getCreditcard} from 'fakexy/fakexy.js/main.js'

Returns a random fake credit card.

Params:

NameTypeAttributeDescription
creditcardBrand {creditcardBrand: string}
  • optional

If specified, return a credit card with the specified brand

Return:

Creditcard

public async getPhonenumbers(locale: {countryCode: string, stateCode: string}): Phonenumber source

import {getPhonenumbers} from 'fakexy/fakexy.js/main.js'

Returns a random fake phonenumber.

Params:

NameTypeAttributeDescription
locale {countryCode: string, stateCode: string}
  • optional

If specified, return phonenumbers in the specified country and state

Return:

Phonenumber

public async getProfile(locale: {countryCode: string, stateCode: string}): Profile source

import {getProfile} from 'fakexy/fakexy.js/main.js'

Returns a random fake profile.

Params:

NameTypeAttributeDescription
locale {countryCode: string, stateCode: string}
  • optional

If specified, return profiles in the specified country and state

Return:

Profile

public async getZipcodes(locale: {countryCode: string, stateCode: string}): Zipcode source

import {getZipcodes} from 'fakexy/fakexy.js/main.js'

Returns a random fake zipcode.

Params:

NameTypeAttributeDescription
locale {countryCode: string, stateCode: string}
  • optional

If specified, return zipcodes in the specified country and state

Return:

Zipcode