system Domain
The system domain maps domain keywords to underlying faker implementations.
Faker Documentation
Methods
system.commonFileExt
Returns a commonly used file extension.
- Canonical:
awd.domain.system.commonFileExt - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.commonFileExt()
Example return values:
pdf
system.commonFileName
Returns a random file name with a given extension or a commonly used extension.
- Canonical:
awd.domain.system.commonFileName - Faker docs: https://fakerjs.dev/api/system
| Arg | Type | Required | Description |
|---|---|---|---|
extension | string | no | File extension to include in the generated filename. |
Examples:
system.commonFileName()
system.commonFileName(extension="txt")
Example return values:
bleak.pdf
system.commonFileType
Returns a commonly used file type.
- Canonical:
awd.domain.system.commonFileType - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.commonFileType()
Example return values:
video
system.cron
Returns a random cron expression.
- Canonical:
awd.domain.system.cron - Faker docs: https://fakerjs.dev/api/system
| Arg | Type | Required | Description |
|---|---|---|---|
includeNonStandard | boolean | no | Whether to include a @yearly, @monthly, @daily, etc text labels in the generated expression. |
includeYear | boolean | no | Whether to include a year in the generated expression. |
Examples:
system.cron()
system.cron(includeNonStandard=true, includeYear=true)
Example return values:
* 15 * * SAT
system.directoryPath
Returns a directory path.
- Canonical:
awd.domain.system.directoryPath - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.directoryPath()
Example return values:
/bin
system.fileExt
Returns a file extension.
- Canonical:
awd.domain.system.fileExt - Faker docs: https://fakerjs.dev/api/system
| Arg | Type | Required | Description |
|---|---|---|---|
mimeType | string | no | MIME type used to constrain generated values. |
Examples:
system.fileExt()
system.fileExt(mimeType="image/png")
Example return values:
xsl
system.fileName
Returns a random file name with extension.
- Canonical:
awd.domain.system.fileName - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.fileName()
Example return values:
unsightly.woff
system.filePath
Returns a file path.
- Canonical:
awd.domain.system.filePath - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.filePath()
Example return values:
/tmp/ouch.xlt
system.fileType
Returns a file type.
- Canonical:
awd.domain.system.fileType - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.fileType()
Example return values:
font
system.mimeType
Returns a mime-type.
- Canonical:
awd.domain.system.mimeType - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.mimeType()
Example return values:
application/gzip
system.networkInterface
Returns a random network interface.
- Canonical:
awd.domain.system.networkInterface - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.networkInterface()
Example return values:
wlx3fba717f9f9c
system.semver
Returns a semantic version.
- Canonical:
awd.domain.system.semver - Faker docs: https://fakerjs.dev/api/system
No parameters.
Examples:
system.semver()
Example return values:
4.3.6