Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Module

Fabricator

Description

Parameters

addresscommerce

city

Generates a random localized city name. The format string can contain any method provided by the MettleCI data fabrication library wrapped in {{}}, e.g. {{name.firstName}} in order to build the city name.

If no format string is provided one of the following is randomly used:

  • {{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}

  • {{address.cityPrefix}} {{name.firstName}}

  • {{name.firstName}}{{address.citySuffix}}

  • {{name.lastName}}{{address.citySuffix}}

format string

address

cityPrefix

Return a random localized city prefix

-

address

citySuffix

Return a random localized city suffix

-

address

country

Return a random country name

-

address

countryCode

Return a random ISO country code

alphaCode string default alpha-2

address

county

Return a random county name

-

address

latitude

Return a random latitude

max double default is 90

min double default is -90

precision number default is 4

address

longitude

Return a random longitude

max double default is 90

min double default is -90

precision number default is 4

address

secondaryAddress

Return a secondary address

-

address

state

Return a state

useAbbr boolean

address

stateAbbr

Return a state abbreviation

-

address

streetAddress

Returns a random localized street address

useFullAddress boolean

address

streetName

Returns a random localized street name

-

address

streetPrefix

Returns a random street prefix

-

address

streetSuffix

Returns a random street suffix

-

address

Returns a random

Returns a random timezone

-

address

zipCode

Returns a random localized zip or postal code

-

address

direction

Return a direction

useAbbr boolean defaults to false

address

cardinalDirection

Return a cardinal direction

-

address

ordinalDirectiopn

Return a direction .

useAbbr boolean defaults to falsecommerce

commerce

commerce

commerce

commerce

commerce

commerce

commerce

commerce

commerce

commerce

commerce

.color

commerce.department

commerce.price

commerce.product

commerce.productAdjective

commerce.productMaterial

commerce.productName

company

.bs

.bsAdjective

.bsBuzz

.bsNoun

.catchPhrase

.catchPhraseAdjective

.catchPhraseDescriptor

company.catchPhraseNoun

company.companyName

company.companySuffix

company.suffixes

Business slang

database.collation

database.column

database.engine

database.type

date.between

date.future

date.month

date.past

date.recent

date.weekday

finance.account

finance.accountName

finance.amount

finance.bic

finance.bitcoinAddress

finance.currencyCode

finance.currencyName

finance.currencySymbol

finance.iban

finance.mask

finance.transactionType

hacker.abbreviation

hacker.adjective

hacker.ingverb

hacker.noun

hacker.phrase

hacker.verb

helpers.randomize

helpers.replaceSymbolWithNumber

helpers.shuffle

helpers.slugify

image.abstract

image.animals

image.avatar

image.business

image.cats

image.city

image.dataUri

image.fashion

image.food

image.image

image.imageUrl

image.nature

image.nightlife

image.people

image.sports

image.technics

image.transport

internet.avatar

internet.color

internet.domainName

internet.domainSuffix

internet.domainWord

internet.email

internet.exampleEmail

internet.ip

internet.ipv6

internet.mac

internet.password

internet.protocol

internet.url

internet.userAgent

internet.userName

lorem

.lines

.paragraph

.paragraphs

.sentence

.sentences

.slug

.text

.word

.words

name

suffix

title

findName

.firstName

jobArea

jobDescriptor

jobTitle

jobType

lastName

prefix

phone.phoneFormats

phone.phoneNumber

phone.phoneNumberFormat

random.alphaNumeric

random.arrayElement

random.boolean

random.image

random.locale

random.number

random.objectElement

random.uuid

random.word

random.words

system.commonFileExt

system.commonFileName

system.commonFileType

system.directoryPath

system.fileExt

system.fileName

system.filePath

system.fileType

system.mimeType

system.semver