Skip to content

Faker.js

tam edited this page Aug 31, 2021 · 7 revisions

Doc Faker.js

GitHub Faker.js

API Methods

1. address

  • zipCode
  • zipCodeByState
  • city
  • cityPrefix
  • citySuffix
  • cityName
  • streetName
  • streetAddress
  • streetSuffix
  • streetPrefix
  • secondaryAddress
  • county
  • country
  • countryCode
  • state
  • stateAbbr
  • latitude
  • longitude
  • direction
  • cardinalDirection
  • ordinalDirection
  • nearbyGPSCoordinate
  • timeZone

2. animal

  • dog
  • cat
  • snake
  • bear
  • lion
  • cetacean
  • horse
  • bird
  • cow
  • fish
  • crocodilia
  • insect
  • rabbit
  • type

3. commerce

  • color
  • department
  • productName
  • price
  • productAdjective
  • productMaterial
  • product
  • productDescription

4. company

  • suffixes
  • companyName
  • companySuffix
  • catchPhrase
  • bs
  • catchPhraseAdjective
  • catchPhraseDescriptor
  • catchPhraseNoun
  • bsAdjective
  • bsBuzz
  • bsNoun

5. database

  • column
  • type
  • collation
  • engine

6. datatype

  • number
  • float
  • datetime
  • string
  • uuid
  • boolean
  • hexaDecimal
  • json
  • array

7. date

  • past
  • future
  • between
  • betweens
  • recent
  • soon
  • month
  • weekday

8. fake

9. finance

  • account
  • accountName
  • routingNumber
  • mask
  • amount
  • transactionType
  • currencyCode
  • currencyName
  • currencySymbol
  • bitcoinAddress
  • litecoinAddress
  • creditCardNumber
  • creditCardCVV
  • ethereumAddress
  • iban
  • bic
  • transactionDescription

10. git

  • branch
  • commitEntry
  • commitMessage
  • commitSha
  • shortSha

11. hacker

  • abbreviation
  • adjective
  • noun
  • verb
  • ingverb
  • phrase

12. helpers

  • randomize
  • slugify
  • replaceSymbolWithNumber
  • replaceSymbols
  • replaceCreditCardSymbols
  • repeatString
  • regexpStyleStringParse
  • shuffle
  • mustache
  • createCard
  • contextualCard
  • userCard
  • createTransaction

13. image

  • image
  • avatar
  • imageUrl
  • abstract
  • animals
  • business
  • cats
  • city
  • food
  • nightlife
  • fashion
  • people
  • nature
  • sports
  • technics
  • transport
  • dataUri
  • lorempixel
  • unsplash
  • lorempicsum

14. internet

  • avatar
  • email
  • exampleEmail
  • userName
  • protocol
  • httpMethod
  • url
  • domainName
  • domainSuffix
  • domainWord
  • ip
  • ipv6
  • port
  • userAgent
  • color
  • mac
  • password

15. lorem

  • word
  • words
  • sentence
  • slug
  • sentences
  • paragraph
  • paragraphs
  • text
  • lines

16. mersenne

  • rand
  • seed
  • seed_array

17. music

  • genre

18. name

  • firstName
  • lastName
  • middleName
  • findName
  • jobTitle
  • gender
  • prefix
  • suffix
  • title
  • jobDescriptor
  • jobArea
  • jobType

19. phone

  • phoneNumber
  • phoneNumberFormat
  • phoneFormats

20. system

  • fileName
  • commonFileName
  • mimeType
  • commonFileType
  • commonFileExt
  • fileType
  • fileExt
  • directoryPath
  • filePath
  • semver

21. time

  • recent

22. unique

23. vehicle

  • vehicle
  • manufacturer
  • model
  • type
  • fuel
  • vin
  • color
  • vrm
  • bicycle