Module

Faker.String

Package
purescript-faker-ffi
Repository
philippedev101/purescript-faker-ffi

#uuid Source

uuid :: Gen String

Generate a random UUID v4.

#ulid Source

ulid :: Gen String

Generate a random ULID.

#nanoid Source

nanoid :: Gen String

Generate a random nanoid with default length.

#nanoidN Source

nanoidN :: Int -> Gen String

Generate a random nanoid with specified length.

#alpha Source

alpha :: Gen String

Generate a random alphabetic string with default options.

#alphaOpts Source

alphaOpts :: AlphaOpts -> Gen String

Generate a random alphabetic string with options (length, casing).

#AlphaOpts Source

type AlphaOpts = { casing :: String, length :: Int }

#alphanumeric Source

alphanumeric :: Gen String

Generate a random alphanumeric string with default options.

#alphanumericOpts Source

alphanumericOpts :: AlphanumericOpts -> Gen String

Generate a random alphanumeric string with options (length, casing).

#AlphanumericOpts Source

type AlphanumericOpts = { casing :: String, length :: Int }

#numeric Source

numeric :: Gen String

Generate a random numeric string with default options.

#numericOpts Source

numericOpts :: NumericOpts -> Gen String

Generate a random numeric string with options (length, allowLeadingZeros).

#NumericOpts Source

type NumericOpts = { allowLeadingZeros :: Boolean, length :: Int }

#hexadecimal Source

hexadecimal :: Gen String

Generate a random hexadecimal string with default options.

#hexadecimalOpts Source

hexadecimalOpts :: HexadecimalOpts -> Gen String

Generate a random hexadecimal string with options (length, casing, prefix).

#HexadecimalOpts Source

type HexadecimalOpts = { casing :: String, length :: Int, prefix :: String }

#binary Source

binary :: Gen String

Generate a random binary string with default options.

#binaryOpts Source

binaryOpts :: BinaryOpts -> Gen String

Generate a random binary string with options (length, prefix).

#BinaryOpts Source

type BinaryOpts = { length :: Int, prefix :: String }

#octal Source

octal :: Gen String

Generate a random octal string with default options.

#octalOpts Source

octalOpts :: OctalOpts -> Gen String

Generate a random octal string with options (length, prefix).

#OctalOpts Source

type OctalOpts = { length :: Int, prefix :: String }

#sample Source

sample :: Gen String

Generate a random string from a random selection of characters.

#sampleN Source

sampleN :: Int -> Gen String

Generate a random string of specified length.

#fromCharacters Source

fromCharacters :: String -> Gen String

Generate a random string from the given characters with default length.

#fromCharactersN Source

fromCharactersN :: String -> Int -> Gen String

Generate a random string from the given characters with specified length.

#symbol Source

symbol :: Gen String

Generate a random special symbol character.

#symbolN Source

symbolN :: Int -> Gen String

Generate random special symbol characters of specified length.