Module

Fakerjs.Location

Package
purescript-fakerjs
Repository
purescript-open-community/purescript-fakerjs

#zipCodeImpl Source

zipCodeImpl :: EffectFn2 Faker { format :: Undefinable String, state :: Undefinable String } String

Foreign function interface helpers

#streetAddressImpl Source

#stateImpl Source

stateImpl :: EffectFn2 Faker { abbreviated :: Boolean } String

#latitudeImpl Source

latitudeImpl :: EffectFn2 Faker { max :: Number, min :: Number, precision :: Int } Number

#longitudeImpl Source

longitudeImpl :: EffectFn2 Faker { max :: Number, min :: Number, precision :: Int } Number

#directionImpl Source

#cardinalDirectionImpl Source

#ordinalDirectionImpl Source

#nearbyGPSCoordinateImpl Source

#zipCode Source

zipCode :: Faker -> { format :: Maybe String, state :: Maybe String } -> Effect String

Generates random zip code from specified format

#city Source

city :: Faker -> Effect String

Generates a random localized city name

#buildingNumber Source

buildingNumber :: Faker -> Effect String

Generates a random building number

#street Source

street :: Faker -> Effect String

Generates a random localized street name

#streetAddress Source

streetAddress :: Faker -> { useFullAddress :: Boolean } -> Effect String

#secondaryAddress Source

secondaryAddress :: Faker -> Effect String

Generates a random localized secondary address

#county Source

county :: Faker -> Effect String

Returns a random localized county

#country Source

country :: Faker -> Effect String

Returns a random country name

#continent Source

continent :: Faker -> Effect String

Returns a random continent name

#countryCode Source

countryCode :: Faker -> CountryCodeVariant -> Effect String

Returns a random ISO_3166-1 country code

#state Source

state :: Faker -> { abbreviated :: Boolean } -> Effect String

Returns a random localized state

#latitude Source

latitude :: Faker -> { max :: Number, min :: Number, precision :: Int } -> Effect Number

Generates a random latitude

#longitude Source

longitude :: Faker -> { max :: Number, min :: Number, precision :: Int } -> Effect Number

#direction Source

direction :: Faker -> { abbreviated :: Boolean } -> Effect String

Returns a random direction

#cardinalDirection Source

cardinalDirection :: Faker -> { abbreviated :: Boolean } -> Effect String

Returns a random cardinal direction

#cardinalDirection_ Source

#ordinalDirection Source

ordinalDirection :: Faker -> { abbreviated :: Boolean } -> Effect String

Returns a random ordinal direction

#Coordinate Source

type Coordinate = { latitude :: Number, longitude :: Number }

#NearbyGPSCoordinateOptions Source

type NearbyGPSCoordinateOptions = { isMetric :: Boolean, origin :: Maybe Coordinate, radius :: Number }

#nearbyGPSCoordinate Source

nearbyGPSCoordinate :: Faker -> NearbyGPSCoordinateOptions -> Effect Coordinate

Generates a random GPS coordinate within the specified radius from the given coordinate

#timeZone Source

timeZone :: Faker -> Effect String

Returns a random IANA time zone relevant to this locale

#Language Source

type Language = { alpha2 :: String, alpha3 :: String, name :: String }

Represents a language with its full name, 2 character ISO 639-1 code, and 3 character ISO 639-2 code.

#language Source

language :: Faker -> Effect Language

Returns a random spoken language