Skip to content

Generators

system

File names and paths, MIME types, semver, error messages.

var faker = Faker(seed: 1337, locale: DecoyLocaleEN.locale)
faker.system.mimeType()
Method Example output
mimeType() application/java-archive
application/vnd.dece.ttml+xml
application/wspolicy+xml
programmingLanguage() ["color": "#aace60", "extension": ".hlsl", "name": "HLSL"]
["color": "#2f1f49", "extension": ".nr", "name": "Noir"]
["color": "#384d54", "extension": ".just", "name": "Just"]
programmingLanguageName() Cypher
Harbour
Pawn
variableName(_ style: NamingStyle = .camelCase) ingloriousSplashing
determinateAvulsion
civicFelon
fileExtension() hvp
mp3
wgsl
directoryPath() /bin
/usr/local/src
/sys
fileName() cicatrix-urbs.ims
ubi-deorsus.semf
stellans-clavis.key
filePath() /home/user/dir/adfluens-audacter.ggb
/var/log/reprensio-aedilitas.sv4crc
/mnt/sobrie-quotienscunque.csh
semver() 5.6.18
1.0.21
2.17.24
errorMessage() goroutine leak detected: 477 routines blocked on the same mutex
deadlock detected while waiting for ShareLock on transaction 49635
password must be at least 12 characters
databaseError() relation "search-indexer" does not exist
null value in column "tenant_id" violates not-null constraint
value too long for type character varying(255)
httpError() too many redirects following media-pipeline callback
unexpected content-type "text/html" from export-worker, expected JSON
unexpected content-type "text/html" from audit-log, expected JSON
runtimeError() circular dependency detected while initialising audit-log
panic recovered in auth-service: send on closed channel
goroutine leak detected: 477 routines blocked on the same mutex
validationError() email must be a valid address
currency must match the account currency
a project with this slug already exists
component() export-worker
user-directory
payments

Examples are real output from three different seeds, captured when this page was built, using each method’s default arguments. Where a signature shows parameters, pass your own to change the size, gender, length or format.