API Reference: SpoofSettings
The settings object accepted as the first argument of create and createWith. Every field is optional; omitted fields fall back to the defaults shown below.
Number options
Field | Type | Default | Description |
|---|---|---|---|
|
|
| Inclusive lower bound for generated numbers |
|
|
| Inclusive upper bound; auto-fixed to |
|
|
|
|
Details and examples: Number settings.
String options
Field | Type | Default | Description |
|---|---|---|---|
|
|
| Include digits |
|
|
| Include lowercase letters in the charset |
|
|
| Include uppercase letters in the charset |
|
|
| Include special characters in the charset |
|
|
| Exact length of generated strings |
Details and examples: String settings.
Date options
Field | Type | Default | Description |
|---|---|---|---|
|
|
| Inclusive lower bound; strings are parsed to dates |
|
|
| Inclusive upper bound; auto-fixed to |
Details and examples: Date settings.
Array options
Field | Type | Default | Description |
|---|---|---|---|
|
|
| Exact length of every generated array, at any depth |
Details and examples: Array settings.
Merging behavior
Passed settings are merged over a fresh SpoofSettings instance per call — a partial object never disables defaults for the fields it omits: